summaryrefslogtreecommitdiff
path: root/src/drivers/aspeed
diff options
context:
space:
mode:
authorElyes HAOUAS <ehaouas@noos.fr>2022-02-02 18:56:46 +0100
committerFelix Singer <felixsinger@posteo.net>2022-07-17 18:45:23 +0000
commit55be012ffdc79a259c6c180e58a6e24c744119f7 (patch)
tree94161b4e0a232b3d73f5c07340079d8ecdcda613 /src/drivers/aspeed
parent8765c09a630e4df6d01ae460149921b03fe4f73b (diff)
drivers: Get rid of unnecessary blank lines {before,after} brace
Change-Id: Ic1b38e93d919c1286a8d130700a4a2bfd6b55258 Signed-off-by: Elyes HAOUAS <ehaouas@noos.fr> Reviewed-on: https://review.coreboot.org/c/coreboot/+/61557 Tested-by: build bot (Jenkins) <no-reply@coreboot.org> Reviewed-by: Felix Singer <felixsinger@posteo.net>
Diffstat (limited to 'src/drivers/aspeed')
-rw-r--r--src/drivers/aspeed/common/ast_dp501.c1
-rw-r--r--src/drivers/aspeed/common/ast_mode.c1
-rw-r--r--src/drivers/aspeed/common/ast_post.c6
3 files changed, 1 insertions, 7 deletions
diff --git a/src/drivers/aspeed/common/ast_dp501.c b/src/drivers/aspeed/common/ast_dp501.c
index 924ca57d9d..ba0833ca1a 100644
--- a/src/drivers/aspeed/common/ast_dp501.c
+++ b/src/drivers/aspeed/common/ast_dp501.c
@@ -146,7 +146,6 @@ static bool ast_launch_m68k(struct drm_device *dev)
data = ast_mindwm(ast, 0x1e6e2100) & 0x01;
if (!data) {
-
if (ast->dp501_fw_addr) {
fw_addr = ast->dp501_fw_addr;
len = 32*1024;
diff --git a/src/drivers/aspeed/common/ast_mode.c b/src/drivers/aspeed/common/ast_mode.c
index e5832e772e..3ab91c228e 100644
--- a/src/drivers/aspeed/common/ast_mode.c
+++ b/src/drivers/aspeed/common/ast_mode.c
@@ -26,7 +26,6 @@ static void ast_crtc_load_lut(struct drm_crtc *crtc)
/* FIXME: Gamma cor 2.6 ? */
for (int i = 0; i < 256; i++)
ast_load_palette_index(ast, i, i, i, i);
-
}
static bool ast_get_vbios_mode_info(struct drm_crtc *crtc, struct drm_display_mode *mode,
diff --git a/src/drivers/aspeed/common/ast_post.c b/src/drivers/aspeed/common/ast_post.c
index e644d910f7..08bc42c833 100644
--- a/src/drivers/aspeed/common/ast_post.c
+++ b/src/drivers/aspeed/common/ast_post.c
@@ -788,8 +788,8 @@ static void finetuneDQSI(struct ast_private *ast)
}
reg_mcr18 = reg_mcr18 | (g_dqidly << 16) | (g_dqsip << 23);
ast_moutdwm(ast, 0x1E6E0018, reg_mcr18);
-
}
+
static bool cbr_dll2(struct ast_private *ast, struct ast2300_dram_param *param)
{
u32 dllmin[2], dllmax[2], dlli, data, passcnt, retry = 0;
@@ -1085,7 +1085,6 @@ static void get_ddr3_info(struct ast_private *ast, struct ast2300_dram_param *pa
param->dram_config |= 0x0c;
break;
}
-
}
static void ddr3_init(struct ast_private *ast, struct ast2300_dram_param *param)
@@ -1226,7 +1225,6 @@ ddr3_init_start:
ast_moutdwm(ast, 0x1E6E0050, 0x80000000);
ast_moutdwm(ast, 0x1E6E0050, 0x00000000);
#endif
-
}
static void get_ddr2_info(struct ast_private *ast, struct ast2300_dram_param *param)
@@ -1617,7 +1615,6 @@ ddr2_init_start:
ast_moutdwm(ast, 0x1E6E0050, 0x80000000);
ast_moutdwm(ast, 0x1E6E0050, 0x00000000);
#endif
-
}
static void ast_post_chip_2300(struct drm_device *dev)
@@ -1883,7 +1880,6 @@ static void reset_mmc_2500(struct ast_private *ast)
static void ddr3_init_2500(struct ast_private *ast, const u32 *ddr_table)
{
-
ast_moutdwm(ast, 0x1E6E0004, 0x00000303);
ast_moutdwm(ast, 0x1E6E0010, ddr_table[REGIDX_010]);
ast_moutdwm(ast, 0x1E6E0014, ddr_table[REGIDX_014]);