mmc: dw_mmc-k3: make array hs_timing_cfg static
authorColin Ian King <colin.king@canonical.com>
Tue, 3 Oct 2017 09:56:54 +0000 (10:56 +0100)
committerUlf Hansson <ulf.hansson@linaro.org>
Mon, 30 Oct 2017 10:46:01 +0000 (11:46 +0100)
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 <colin.king@canonical.com>
Signed-off-by: Ulf Hansson <ulf.hansson@linaro.org>
drivers/mmc/host/dw_mmc-k3.c

index 64cda84..73fd75c 100644 (file)
@@ -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 */