Commit graph android_kernel_sony_sdm845/include/linux/mmc/cd-gpio.h
Message SHA1
mmc: simplify mmc_cd_gpio_request() by removing two parameters
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>

Guennadi Liakhovetski   authored and   Chris Ball   commited 2012-03-27 12:20:14 -04:00
c9b0546a59
mmc: add a generic GPIO card-detect helper
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>

Guennadi Liakhovetski   authored and   Chris Ball   commited 2012-01-11 23:58:45 -05:00
349ab52446