aboutsummaryrefslogtreecommitdiffstats
path: root/include/linux/mmc/cd-gpio.h
diff options
context:
space:
mode:
authorGuennadi Liakhovetski <g.liakhovetski@gmx.de>2011-12-25 15:36:02 -0500
committerChris Ball <cjb@laptop.org>2012-01-11 23:58:45 -0500
commit349ab52446772a359bc7e7699cae3880d48fa5c9 (patch)
treeea51e81f4cd78375172063fac266885d11efad0e /include/linux/mmc/cd-gpio.h
parentb67e198073b2d2f16572f5fa77553fec14775f69 (diff)
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>
Diffstat (limited to 'include/linux/mmc/cd-gpio.h')
-rw-r--r--include/linux/mmc/cd-gpio.h19
1 files changed, 19 insertions, 0 deletions
diff --git a/include/linux/mmc/cd-gpio.h b/include/linux/mmc/cd-gpio.h
new file mode 100644
index 000000000000..a8e469783318
--- /dev/null
+++ b/include/linux/mmc/cd-gpio.h
@@ -0,0 +1,19 @@
1/*
2 * Generic GPIO card-detect helper header
3 *
4 * Copyright (C) 2011, Guennadi Liakhovetski <g.liakhovetski@gmx.de>
5 *
6 * This program is free software; you can redistribute it and/or modify
7 * it under the terms of the GNU General Public License version 2 as
8 * published by the Free Software Foundation.
9 */
10
11#ifndef MMC_CD_GPIO_H
12#define MMC_CD_GPIO_H
13
14struct mmc_host;
15int mmc_cd_gpio_request(struct mmc_host *host, unsigned int gpio,
16 unsigned int irq, unsigned long flags);
17void mmc_cd_gpio_free(struct mmc_host *host);
18
19#endif