mmc: add a generic GPIO card-detect helper
authorGuennadi Liakhovetski <g.liakhovetski@gmx.de>
Sun, 25 Dec 2011 20:36:02 +0000 (21:36 +0100)
committerChris Ball <cjb@laptop.org>
Thu, 12 Jan 2012 04:58:45 +0000 (23:58 -0500)
commit349ab52446772a359bc7e7699cae3880d48fa5c9
treeea51e81f4cd78375172063fac266885d11efad0e
parentb67e198073b2d2f16572f5fa77553fec14775f69
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>
drivers/mmc/core/Makefile
drivers/mmc/core/cd-gpio.c [new file with mode: 0644]
include/linux/mmc/cd-gpio.h [new file with mode: 0644]