diff options
| author | Guennadi Liakhovetski <g.liakhovetski@gmx.de> | 2012-05-01 10:27:25 -0400 |
|---|---|---|
| committer | Chris Ball <cjb@laptop.org> | 2012-07-21 00:02:17 -0400 |
| commit | befe4048d8d20483a62636e20f3dbffebf85a1c1 (patch) | |
| tree | 31bec106a3a2f4956cc1fd4a1fa4b465d31bddb9 /include/linux/mmc | |
| parent | 5c08d7fae0815cd163a98e05c8d94fc0de77ff67 (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.h | 2 |
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 @@ | |||
| 12 | #define MMC_SLOT_GPIO_H | 12 | #define MMC_SLOT_GPIO_H |
| 13 | 13 | ||
| 14 | struct mmc_host; | 14 | struct mmc_host; |
| 15 | |||
| 16 | int mmc_gpio_get_cd(struct mmc_host *host); | ||
| 15 | int mmc_gpio_request_cd(struct mmc_host *host, unsigned int gpio); | 17 | int mmc_gpio_request_cd(struct mmc_host *host, unsigned int gpio); |
| 16 | void mmc_gpio_free_cd(struct mmc_host *host); | 18 | void mmc_gpio_free_cd(struct mmc_host *host); |
| 17 | 19 | ||
