aboutsummaryrefslogtreecommitdiffstats
path: root/include/linux/mmc/cd-gpio.h
Commit message (Collapse)AuthorAgeFilesLines
* mmc: simplify mmc_cd_gpio_request() by removing two parametersGuennadi Liakhovetski2012-03-271-2/+1
| | | | | | | | | Calculate the IRQ number, using gpio_to_irq() and use fixed flags: trigger on both edges. This makes two out of four arguments of the mmc_cd_gpio_request() function redundant. Signed-off-by: Guennadi Liakhovetski <g.liakhovetski@gmx.de> Signed-off-by: Chris Ball <cjb@laptop.org>
* mmc: add a generic GPIO card-detect helperGuennadi Liakhovetski2012-01-111-0/+19
This patch adds a primitive helper to support card hotplug detection on platforms, where a GPIO, capable of producing interrupts, is used for detection of card-insertion and -removal events. Signed-off-by: Guennadi Liakhovetski <g.liakhovetski@gmx.de> Signed-off-by: Chris Ball <cjb@laptop.org>