From: Adrian Hunter <adrian.hunter@intel.com>
To: Masahiro Yamada <yamada.masahiro@socionext.com>,
linux-mmc@vger.kernel.org
Cc: Piotr Sroka <piotrs@cadence.com>,
linux-kernel@vger.kernel.org,
Ulf Hansson <ulf.hansson@linaro.org>
Subject: Re: [PATCH v2 2/4] mmc: sdhci: remove #indef CONFIG_PM around function declarations
Date: Mon, 14 Aug 2017 13:29:49 +0300 [thread overview]
Message-ID: <e7e49120-ffcc-27a4-5533-d6e83e25c9df@intel.com> (raw)
In-Reply-To: <1501724656-12435-3-git-send-email-yamada.masahiro@socionext.com>
On 03/08/17 04:44, Masahiro Yamada wrote:
> We need not surround declarations with #ifdef. Besides, drivers may
> want to call these from PM callbacks marked with __maybe_unused.
No, we use #ifdef not __maybe_unused, and removing the #ifdef is misleading.
>
> Signed-off-by: Masahiro Yamada <yamada.masahiro@socionext.com>
> ---
>
> Changes in v2:
> - Newly added
>
> drivers/mmc/host/sdhci.h | 4 ----
> 1 file changed, 4 deletions(-)
>
> diff --git a/drivers/mmc/host/sdhci.h b/drivers/mmc/host/sdhci.h
> index 0469fa191493..773b38127da2 100644
> --- a/drivers/mmc/host/sdhci.h
> +++ b/drivers/mmc/host/sdhci.h
> @@ -709,15 +709,11 @@ void sdhci_set_ios(struct mmc_host *mmc, struct mmc_ios *ios);
> int sdhci_start_signal_voltage_switch(struct mmc_host *mmc,
> struct mmc_ios *ios);
> void sdhci_enable_sdio_irq(struct mmc_host *mmc, int enable);
> -
> -#ifdef CONFIG_PM
> int sdhci_suspend_host(struct sdhci_host *host);
> int sdhci_resume_host(struct sdhci_host *host);
> void sdhci_enable_irq_wakeups(struct sdhci_host *host);
> int sdhci_runtime_suspend_host(struct sdhci_host *host);
> int sdhci_runtime_resume_host(struct sdhci_host *host);
> -#endif
> -
> void sdhci_cqe_enable(struct mmc_host *mmc);
> void sdhci_cqe_disable(struct mmc_host *mmc, bool recovery);
> bool sdhci_cqe_irq(struct sdhci_host *host, u32 intmask, int *cmd_error,
>
next prev parent reply other threads:[~2017-08-14 10:36 UTC|newest]
Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top
2017-08-03 1:44 [PATCH v2 0/4] mmc: sdhci: refactor PM in sdhci-pltfm add support PM for cadence port Masahiro Yamada
2017-08-03 1:44 ` [PATCH v2 1/4] mmc: sdhci: enable/disable the clock in sdhci_pltfm_suspend/resume Masahiro Yamada
2017-08-14 10:28 ` Adrian Hunter
2017-08-14 10:28 ` Adrian Hunter
2017-08-03 1:44 ` [PATCH v2 2/4] mmc: sdhci: remove #indef CONFIG_PM around function declarations Masahiro Yamada
2017-08-14 10:29 ` Adrian Hunter [this message]
2017-08-03 1:44 ` [PATCH v2 3/4] mmc: sdhci-pltfm: export sdhci_pltfm_suspend/resume Masahiro Yamada
2017-08-03 1:44 ` [PATCH v2 4/4] mmc: sdhci-cadence: add suspend / resume support Masahiro Yamada
2017-08-14 10:53 ` Adrian Hunter
2017-08-14 15:28 ` Masahiro Yamada
2017-08-15 6:46 ` Adrian Hunter
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=e7e49120-ffcc-27a4-5533-d6e83e25c9df@intel.com \
--to=adrian.hunter@intel.com \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-mmc@vger.kernel.org \
--cc=piotrs@cadence.com \
--cc=ulf.hansson@linaro.org \
--cc=yamada.masahiro@socionext.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox