mmc: core: expose the capability of gpio card detect
authorShawn Lin <shawn.lin@rock-chips.com>
Wed, 12 Oct 2016 02:50:37 +0000 (10:50 +0800)
committerNitin Garg <nitin.garg@nxp.com>
Mon, 19 Mar 2018 20:36:49 +0000 (15:36 -0500)
commitc9142ec053d01bf05f9644131a457f83742a9808
tree28a7e9879197cd2e83a7ee2bdce22d7ea545c78f
parent28ad42b6e13e4eef6f05b1642158943fa4ffd6a6
mmc: core: expose the capability of gpio card detect

Add new helper API mmc_can_gpio_cd for slot-gpio to make
host drivers know whether it supports gpio card detect.

Signed-off-by: Shawn Lin <shawn.lin@rock-chips.com>
Signed-off-by: Jaehoon Chung <jh80.chung@samsung.com>
Signed-off-by: Ulf Hansson <ulf.hansson@linaro.org>
(cherry picked from commit 50fcbbbb79de4b95a765ea170677c9810fcb9cee)
drivers/mmc/core/slot-gpio.c
include/linux/mmc/slot-gpio.h