* [PATCH] mmc: sdhci-of-at91: make function sdhci_at91_set_uhs_signaling static
@ 2017-10-03 10:06 Colin King
2017-10-04 8:59 ` Ulf Hansson
0 siblings, 1 reply; 2+ messages in thread
From: Colin King @ 2017-10-03 10:06 UTC (permalink / raw)
To: Ludovic Desroches, Adrian Hunter, Ulf Hansson, linux-mmc
Cc: kernel-janitors, linux-kernel
From: Colin Ian King <colin.king@canonical.com>
The function sdhci_at91_set_uhs_signaling is local to the source and does
not need to be in global scope, so make it static.
Cleans up sparse warning:
symbol 'sdhci_at91_set_uhs_signaling' was not declared. Should it be
static?
Signed-off-by: Colin Ian King <colin.king@canonical.com>
---
drivers/mmc/host/sdhci-of-at91.c | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/drivers/mmc/host/sdhci-of-at91.c b/drivers/mmc/host/sdhci-of-at91.c
index 4e47ed6bc716..682c573e20a7 100644
--- a/drivers/mmc/host/sdhci-of-at91.c
+++ b/drivers/mmc/host/sdhci-of-at91.c
@@ -114,7 +114,8 @@ static void sdhci_at91_set_power(struct sdhci_host *host, unsigned char mode,
sdhci_set_power_noreg(host, mode, vdd);
}
-void sdhci_at91_set_uhs_signaling(struct sdhci_host *host, unsigned int timing)
+static void sdhci_at91_set_uhs_signaling(struct sdhci_host *host,
+ unsigned int timing)
{
if (timing == MMC_TIMING_MMC_DDR52)
sdhci_writeb(host, SDMMC_MC1R_DDR, SDMMC_MC1R);
--
2.14.1
^ permalink raw reply [flat|nested] 2+ messages in thread* Re: [PATCH] mmc: sdhci-of-at91: make function sdhci_at91_set_uhs_signaling static
2017-10-03 10:06 [PATCH] mmc: sdhci-of-at91: make function sdhci_at91_set_uhs_signaling static Colin King
@ 2017-10-04 8:59 ` Ulf Hansson
0 siblings, 0 replies; 2+ messages in thread
From: Ulf Hansson @ 2017-10-04 8:59 UTC (permalink / raw)
To: Colin King
Cc: Ludovic Desroches, Adrian Hunter, linux-mmc, kernel-janitors,
linux-kernel
On 3 October 2017 at 12:06, Colin King <colin.king@canonical.com> wrote:
> From: Colin Ian King <colin.king@canonical.com>
>
> The function sdhci_at91_set_uhs_signaling is local to the source and does
> not need to be in global scope, so make it static.
>
> Cleans up sparse warning:
> symbol 'sdhci_at91_set_uhs_signaling' was not declared. Should it be
> static?
>
> Signed-off-by: Colin Ian King <colin.king@canonical.com>
Thanks, applied for next!
Kind regards
Uffe
> ---
> drivers/mmc/host/sdhci-of-at91.c | 3 ++-
> 1 file changed, 2 insertions(+), 1 deletion(-)
>
> diff --git a/drivers/mmc/host/sdhci-of-at91.c b/drivers/mmc/host/sdhci-of-at91.c
> index 4e47ed6bc716..682c573e20a7 100644
> --- a/drivers/mmc/host/sdhci-of-at91.c
> +++ b/drivers/mmc/host/sdhci-of-at91.c
> @@ -114,7 +114,8 @@ static void sdhci_at91_set_power(struct sdhci_host *host, unsigned char mode,
> sdhci_set_power_noreg(host, mode, vdd);
> }
>
> -void sdhci_at91_set_uhs_signaling(struct sdhci_host *host, unsigned int timing)
> +static void sdhci_at91_set_uhs_signaling(struct sdhci_host *host,
> + unsigned int timing)
> {
> if (timing == MMC_TIMING_MMC_DDR52)
> sdhci_writeb(host, SDMMC_MC1R_DDR, SDMMC_MC1R);
> --
> 2.14.1
>
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2017-10-04 9:00 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2017-10-03 10:06 [PATCH] mmc: sdhci-of-at91: make function sdhci_at91_set_uhs_signaling static Colin King
2017-10-04 8:59 ` Ulf Hansson
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®