diff options
author | Shawn Lin <shawn.lin@rock-chips.com> | 2016-10-12 10:50:37 +0800 |
---|---|---|
committer | Ulf Hansson <ulf.hansson@linaro.org> | 2016-11-29 09:00:37 +0100 |
commit | 50fcbbbb79de4b95a765ea170677c9810fcb9cee (patch) | |
tree | 6a9abe578055294f8ff50bda912aa53fe0de60da /include/linux/mmc | |
parent | f90142683f04bcb0729bf0df67a5e29562b725b9 (diff) | |
download | linux-stable-50fcbbbb79de4b95a765ea170677c9810fcb9cee.tar.gz linux-stable-50fcbbbb79de4b95a765ea170677c9810fcb9cee.tar.bz2 linux-stable-50fcbbbb79de4b95a765ea170677c9810fcb9cee.zip |
mmc: core: expose the capability of gpio card detect
Add new helper API mmc_can_gpio_cd for slot-gpio to make
host drivers know whether it supports gpio card detect.
Signed-off-by: Shawn Lin <shawn.lin@rock-chips.com>
Signed-off-by: Jaehoon Chung <jh80.chung@samsung.com>
Signed-off-by: Ulf Hansson <ulf.hansson@linaro.org>
Diffstat (limited to 'include/linux/mmc')
-rw-r--r-- | include/linux/mmc/slot-gpio.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/include/linux/mmc/slot-gpio.h b/include/linux/mmc/slot-gpio.h index 3945a8c9d3cb..a7972cd3bc14 100644 --- a/include/linux/mmc/slot-gpio.h +++ b/include/linux/mmc/slot-gpio.h @@ -29,5 +29,6 @@ int mmc_gpiod_request_ro(struct mmc_host *host, const char *con_id, 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); #endif |