]> git.proxmox.com Git - mirror_ubuntu-bionic-kernel.git/commitdiff
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 64cda84b23029a5d40bcee5754576080ee406ae0..73fd75c3c824904d7171a51f16943192f6c1bc03 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 */