soc/mediatek/mt8183: Improve code formatting

This patch contains some minor changes including:
- Use lowercase hex literals
- Combine short lines
- Remove unnecessary curly braces
- Simplify struct initialization
- Leverage macro _SELPH_DQS_BITS
- Ensure whitespaces around binary operators
- Remove extra whitespaces after commas
- Change log level and remove unnecessary debug logs

BUG=none
BRANCH=kukui
TEST=emerge-kukui coreboot

Change-Id: I33616e6142325920c2fd7e6dc1dc88eb29c5cf34
Signed-off-by: Yu-Ping Wu <yupingso@chromium.org>
Reviewed-on: https://review.coreboot.org/c/coreboot/+/36011
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Reviewed-by: Hung-Te Lin <hungte@chromium.org>
diff --git a/src/soc/mediatek/mt8183/memory.c b/src/soc/mediatek/mt8183/memory.c
index bd5c74c..3d7668d 100644
--- a/src/soc/mediatek/mt8183/memory.c
+++ b/src/soc/mediatek/mt8183/memory.c
@@ -43,7 +43,7 @@
 			       (i == 0) ? "pass" : "fail", i);
 
 			if (i != 0) {
-				dramc_show("DRAM memory test failed\n");
+				printk(BIOS_ERR, "DRAM memory test failed\n");
 				return -1;
 			}
 
@@ -80,7 +80,7 @@
 		return -1;
 	}
 
-	if (dparam->header.config != config)  {
+	if (dparam->header.config != config) {
 		printk(BIOS_WARNING,
 		       "Incompatible config for calibration data from flash "
 		       "(expected: %#x, saved: %#x)\n",
@@ -167,7 +167,7 @@
 		set_source_to_flash(dparam->freq_params);
 		dparam_ops->write_to_flash(dparam);
 		printk(BIOS_DEBUG, "Calibration params saved to flash: "
-		       "version=%#x, size=#%x\n",
+		       "version=%#x, size=%#x\n",
 		       dparam->header.version, dparam->header.size);
 		return;
 	}