]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commita566640d7ea2226f1ed3f45bff73590f83527516
treeea51e81f4cd78375172063fac266885d11efad0e
parentbf6bbcfc1a49142f3ab68fc1493e5eaa8769283e
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]