summaryrefslogtreecommitdiffstats
path: root/include/linux/mmc
diff options
context:
space:
mode:
authorGuennadi Liakhovetski <g.liakhovetski@gmx.de>2012-05-01 16:27:25 +0200
committerChris Ball <cjb@laptop.org>2012-07-21 00:02:17 -0400
commitbefe4048d8d20483a62636e20f3dbffebf85a1c1 (patch)
tree31bec106a3a2f4956cc1fd4a1fa4b465d31bddb9 /include/linux/mmc
parent5c08d7fae0815cd163a98e05c8d94fc0de77ff67 (diff)
mmc: add CD GPIO polling support to slot functions
A simple extension of mmc slot functions add support for CD GPIO polling for cases where the GPIO cannot produce interrupts, or where this is not desired for some reason. Signed-off-by: Guennadi Liakhovetski <g.liakhovetski@gmx.de> Signed-off-by: Chris Ball <cjb@laptop.org>
Diffstat (limited to 'include/linux/mmc')
-rw-r--r--include/linux/mmc/slot-gpio.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/include/linux/mmc/slot-gpio.h b/include/linux/mmc/slot-gpio.h
index edfaa325437..1a977d7ba3b 100644
--- a/include/linux/mmc/slot-gpio.h
+++ b/include/linux/mmc/slot-gpio.h
@@ -12,6 +12,8 @@
#define MMC_SLOT_GPIO_H
struct mmc_host;
+
+int mmc_gpio_get_cd(struct mmc_host *host);
int mmc_gpio_request_cd(struct mmc_host *host, unsigned int gpio);
void mmc_gpio_free_cd(struct mmc_host *host);