Skip to content

Commit 309a29b

Browse files
ColinIanKingmartinkpetersen
authored andcommitted
scsi: ufs: host: mediatek: Make read-only array scale_us static const
Don't populate the read-only array scale_us on the stack at run time, instead make it static const. Signed-off-by: Colin Ian King <[email protected]> Reviewed-by: Peter Wang <[email protected]> Link: https://patch.msgid.link/[email protected] Signed-off-by: Martin K. Petersen <[email protected]>
1 parent d0f6cfb commit 309a29b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

drivers/ufs/host/ufs-mediatek.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1112,7 +1112,7 @@ static void ufs_mtk_setup_clk_gating(struct ufs_hba *hba)
11121112
unsigned long flags;
11131113
u32 ah_ms = 10;
11141114
u32 ah_scale, ah_timer;
1115-
u32 scale_us[] = {1, 10, 100, 1000, 10000, 100000};
1115+
static const u32 scale_us[] = {1, 10, 100, 1000, 10000, 100000};
11161116

11171117
if (ufshcd_is_clkgating_allowed(hba)) {
11181118
if (ufshcd_is_auto_hibern8_supported(hba) && hba->ahit) {

0 commit comments

Comments
 (0)