extcon: gpio: Add support for active-low presence to detect pins
authorGuenter Roeck <linux@roeck-us.net>
Wed, 11 Sep 2013 23:49:54 +0000 (08:49 +0900)
committerChanwoo Choi <cw00.choi@samsung.com>
Fri, 27 Sep 2013 00:37:01 +0000 (09:37 +0900)
commit5bfbdc9caa7e16b2a77a62a9f9a63b5693e23716
treec2c38080043b0ae1fba1fe462d691436ba25d9fc
parent7c0f6558f893eb5eddb52ee0fa84c2d43b2c199a
extcon: gpio: Add support for active-low presence to detect pins

This patch add 'gpio_active_low' field to 'struct gpio_extcon_data'
to check whether gpio active state is 1(high) or 0(low).

Signed-off-by: Guenter Roeck <linux@roeck-us.net>
Signed-off-by: Chanwoo Choi <cw00.choi@samsung.com>
drivers/extcon/extcon-gpio.c
include/linux/extcon/extcon-gpio.h