diff options
author | Guennadi Liakhovetski <g.liakhovetski@gmx.de> | 2012-04-30 17:31:57 -0400 |
---|---|---|
committer | Chris Ball <cjb@laptop.org> | 2012-07-10 23:04:04 -0400 |
commit | fd0ea65d3e675e479e022b6cfc9ebe1864c76afc (patch) | |
tree | 8869d7965ccb05b9ca635d21c983d84a552ee21e /include/linux/mmc | |
parent | 0f506a96693d8ad4aeccbd98dbd54a3c7357cfa8 (diff) |
mmc: extend and rename cd-gpio helpers to handle more slot GPIO functions
GPIOs can be used in MMC/SD-card slots not only for hotplug detection, but
also to implement the write-protection pin. Rename cd-gpio helpers to
slot-gpio to make addition of further slot GPIO functions possible.
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 (renamed from include/linux/mmc/cd-gpio.h) | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/include/linux/mmc/cd-gpio.h b/include/linux/mmc/slot-gpio.h index cefaba038ccb..edfaa3254373 100644 --- a/include/linux/mmc/cd-gpio.h +++ b/include/linux/mmc/slot-gpio.h | |||
@@ -8,11 +8,11 @@ | |||
8 | * published by the Free Software Foundation. | 8 | * published by the Free Software Foundation. |
9 | */ | 9 | */ |
10 | 10 | ||
11 | #ifndef MMC_CD_GPIO_H | 11 | #ifndef MMC_SLOT_GPIO_H |
12 | #define MMC_CD_GPIO_H | 12 | #define MMC_SLOT_GPIO_H |
13 | 13 | ||
14 | struct mmc_host; | 14 | struct mmc_host; |
15 | int mmc_cd_gpio_request(struct mmc_host *host, unsigned int gpio); | 15 | int mmc_gpio_request_cd(struct mmc_host *host, unsigned int gpio); |
16 | void mmc_cd_gpio_free(struct mmc_host *host); | 16 | void mmc_gpio_free_cd(struct mmc_host *host); |
17 | 17 | ||
18 | #endif | 18 | #endif |