]> git.karo-electronics.de Git - linux-beck.git/commit
mmc: slot-gpio: Add GPIO descriptor based CD GPIO API
authorAdrian Hunter <adrian.hunter@intel.com>
Mon, 10 Mar 2014 13:02:41 +0000 (15:02 +0200)
committerChris Ball <chris@printf.net>
Mon, 17 Mar 2014 13:12:00 +0000 (09:12 -0400)
commit740a221ef0e579dc7c675cf6b90f5313509788f7
tree7e31940925f1e6e4b7876c9a1f96a17eef20b401
parent26652671338a443fd33cf47b50658dd8b095d54a
mmc: slot-gpio: Add GPIO descriptor based CD GPIO API

Add functions to request a CD GPIO using the GPIO descriptor API.
Note that the new request function is paired with mmc_gpiod_free_cd()
not mmc_gpio_free_cd().  Note also that it must be called prior to
mmc_add_host() otherwise the caller must also call
mmc_gpiod_request_cd_irq().

Signed-off-by: Adrian Hunter <adrian.hunter@intel.com>
Reviewed-by: Linus Walleij <linus.walleij@linaro.org>
Signed-off-by: Chris Ball <chris@printf.net>
drivers/mmc/core/core.c
drivers/mmc/core/slot-gpio.c
include/linux/mmc/slot-gpio.h