mmc: dw_mmc-k3: make array hs_timing_cfg static
PATCH 1/1 mmc: dw_mmc-k3: make array hs_timing_cfg static
From: Colin Ian King <[email protected]>
The array hs_timing_cfg is local to the source and does not need to be in global scope, so make it static.
Cleans up sparse warning:
symbol 'hs_timing_cfg' was not declared. Should it be static?
Signed-off-by Colin Ian King <[email protected]>
--- drivers/mmc/host/dw_mmc-k3.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/mmc/host/dw_mmc-k3.c +1 -1
@@ -75,7 +75,7 @@ struct hs_timing {u32 smpl_phase_min; }; -struct hs_timing hs_timing_cfg[TIMING_MODE ][TIMING_CFG_NUM ] = { +static struct hs_timing hs_timing_cfg[TIMING_MODE ][TIMING_CFG_NUM ] = { {/* reserved */ }, {/* SD */ {7 ,0 ,15 ,15 ,},/* 0: LEGACY 400k */
Signature · 1 line
2.14.1
Ulf Hansson
AppliedQuoted 9 lines · Colin King
From: Colin Ian King <[email protected]>
The array
hs_timing_cfgis local to the source and does not need to be in global scope, so make it static.Cleans up sparse warning:
symbol 'hs_timing_cfg' was not declared. Should it be static?Signed-off-by Colin Ian King <[email protected]>
Thanks, applied for next!
Kind regards
Uffe
Quoted 20 lines
--- drivers/mmc/host/dw_mmc-k3.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)drivers/mmc/host/dw_mmc-k3.c +1
-2@@ -75,7 +75,7 @@ struct hs_timing {u32 smpl_phase_min; }; -struct hs_timing hs_timing_cfg[TIMING_MODE ][TIMING_CFG_NUM ] = { +static struct hs_timing hs_timing_cfg[TIMING_MODE ][TIMING_CFG_NUM ] = { {/* reserved */ }, {/* SD */ {7 ,0 ,15 ,15 ,},/* 0: LEGACY 400k */ --2.14.1