linux-kernel-test/drivers/extcon
Guenter Roeck 4288d9b8ed extcon: gpio: Request gpio pin before modifying its state
Commit 338de0ca (extcon: gpio: Use gpio driver/chip debounce if supported)
introduced a call to gpio_set_debounce() before actually requesting the
respective gpio pin from the gpio subsystem.

The gpio subsystem expects that a gpio pin was requested before modifying its
state. Not doing so results in a warning from gpiolib, and the gpio pin is
auto-requested. This in turn causes the subsequent devm_gpio_request_one()
to fail. So devm_gpio_request_one() must be called prior to calling
gpio_set_debounce().

Signed-off-by: Guenter Roeck <linux@roeck-us.net>
Acked-by: MyungJoo Ham <myungjoo.ham@samsung.com>
Signed-off-by: Chanwoo Choi <cw00.choi@samsung.com>
2014-01-07 11:54:26 +09:00
..
extcon-adc-jack.c extcon: Simplify extcon_dev_register() prototype by removing unnecessary parameter 2013-09-27 09:37:01 +09:00
extcon-arizona.c extcon: arizona: Get pdata from arizona structure not device 2013-11-26 14:30:10 +09:00
extcon-class.c extcon: remove freed groups caused the panic or warning in unregister flow 2013-11-26 15:17:23 +09:00
extcon-gpio.c extcon: gpio: Request gpio pin before modifying its state 2014-01-07 11:54:26 +09:00
extcon-max8997.c Update extcon for 3.13 2013-09-26 20:47:25 -07:00
extcon-max77693.c Update extcon for 3.13 2013-09-26 20:47:25 -07:00
extcon-palmas.c extcon: Simplify extcon_dev_register() prototype by removing unnecessary parameter 2013-09-27 09:37:01 +09:00
Kconfig extcon: Add an API to get extcon device from dt node 2013-08-05 08:52:45 +09:00
Makefile extcon: Add an API to get extcon device from dt node 2013-08-05 08:52:45 +09:00
of_extcon.c extcon: Add an API to get extcon device from dt node 2013-08-05 08:52:45 +09:00