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)
committerUlf Hansson <ulf.hansson@linaro.org>
Tue, 29 Nov 2016 08:00:37 +0000 (09:00 +0100)
commit50fcbbbb79de4b95a765ea170677c9810fcb9cee
tree6a9abe578055294f8ff50bda912aa53fe0de60da
parentf90142683f04bcb0729bf0df67a5e29562b725b9
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>
drivers/mmc/core/slot-gpio.c
include/linux/mmc/slot-gpio.h