gpio: gpio-generic: add flag to read out output value from reg_set
authorVladimir Zapolskiy <vladimir_zapolskiy@mentor.com>
Wed, 29 Apr 2015 15:34:59 +0000 (18:34 +0300)
committerLinus Walleij <linus.walleij@linaro.org>
Mon, 11 May 2015 09:49:02 +0000 (11:49 +0200)
commitb19e7f51a55fe740c18038d1d6957aedfc078d07
tree69601960687fdab39deb1e3ac2b3cc809e356c52
parentff71880006795290f371caae13e740491ec76956
gpio: gpio-generic: add flag to read out output value from reg_set

The change introduces BGPIOF_READ_OUTPUT_REG_SET flag for gpio-generic
GPIO chip implementation, which allows to get correct configured value
from reg_set register, input value is still get from reg_dat.

Signed-off-by: Vladimir Zapolskiy <vladimir_zapolskiy@mentor.com>
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
drivers/gpio/gpio-generic.c
include/linux/basic_mmio_gpio.h