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 <colin.i.king@gmail.com> Reviewed-by: Peter Wang <peter.wang@mediatek.com> Link: https://patch.msgid.link/20251219214428.492744-1-colin.i.king@gmail.com Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>pull/1258/merge
parent
d0f6cfb491
commit
309a29b596
|
|
@ -1112,7 +1112,7 @@ static void ufs_mtk_setup_clk_gating(struct ufs_hba *hba)
|
|||
unsigned long flags;
|
||||
u32 ah_ms = 10;
|
||||
u32 ah_scale, ah_timer;
|
||||
u32 scale_us[] = {1, 10, 100, 1000, 10000, 100000};
|
||||
static const u32 scale_us[] = {1, 10, 100, 1000, 10000, 100000};
|
||||
|
||||
if (ufshcd_is_clkgating_allowed(hba)) {
|
||||
if (ufshcd_is_auto_hibern8_supported(hba) && hba->ahit) {
|
||||
|
|
|
|||
Loading…
Reference in New Issue