summaryrefslogtreecommitdiff
path: root/include/linux/mmc/slot-gpio.h
diff options
context:
space:
mode:
authorMasahiro Yamada <yamada.masahiro@socionext.com>2018-01-17 19:28:05 +0300
committerUlf Hansson <ulf.hansson@linaro.org>2018-01-18 11:08:56 +0300
commit85f9ef8cdfb463e6e8ff9fe8cdcc0aed438b526e (patch)
treec10cb09051ce0191129171a5a496de91d33db8d3 /include/linux/mmc/slot-gpio.h
parentbc45719c1b1a56047246d44c7e4ed88a8ae702c1 (diff)
downloadlinux-85f9ef8cdfb463e6e8ff9fe8cdcc0aed438b526e.tar.xz
mmc: slot-gpio: add a helper to check capability of GPIO WP detection
Like mmc_can_gpio_cd(), mmc_can_gpio_ro() will also be useful for host drivers to know whether GPIO write-protect detection is supported. Signed-off-by: Masahiro Yamada <yamada.masahiro@socionext.com> Signed-off-by: Ulf Hansson <ulf.hansson@linaro.org>
Diffstat (limited to 'include/linux/mmc/slot-gpio.h')
-rw-r--r--include/linux/mmc/slot-gpio.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/include/linux/mmc/slot-gpio.h b/include/linux/mmc/slot-gpio.h
index 82f0d289f110..91f1ba0663c8 100644
--- a/include/linux/mmc/slot-gpio.h
+++ b/include/linux/mmc/slot-gpio.h
@@ -33,5 +33,6 @@ void mmc_gpio_set_cd_isr(struct mmc_host *host,
irqreturn_t (*isr)(int irq, void *dev_id));
void mmc_gpiod_request_cd_irq(struct mmc_host *host);
bool mmc_can_gpio_cd(struct mmc_host *host);
+bool mmc_can_gpio_ro(struct mmc_host *host);
#endif