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>
This commit is contained in:

committed by
Chris Ball

parent
5c08d7fae0
commit
befe4048d8
@@ -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);
|
||||
|
||||
|
Reference in New Issue
Block a user