linux-xiaomi-chiron/include/dt-bindings
Andrew Jeffery e10f72bf4b gpio: gpiolib: Generalise state persistence beyond sleep
General support for state persistence is added to gpiolib with the
introduction of a new pinconf parameter to propagate the request to
hardware. The existing persistence support for sleep is adapted to
include hardware support if the GPIO driver provides it. Persistence
continues to be enabled by default; in-kernel consumers can opt out, but
userspace (currently) does not have a choice.

The *_SLEEP_MAY_LOSE_VALUE and *_SLEEP_MAINTAIN_VALUE symbols are
renamed, dropping the SLEEP prefix to reflect that the concept is no
longer sleep-specific.  I feel that renaming to just *_MAY_LOSE_VALUE
could initially be misinterpreted, so I've further changed the symbols
to *_TRANSITORY and *_PERSISTENT to address this.

The sysfs interface is modified only to keep consistency with the
chardev interface in enforcing persistence for userspace exports.

Signed-off-by: Andrew Jeffery <andrew@aj.id.au>
Reviewed-by: Charles Keepax <ckeepax@opensource.cirrus.com>
Acked-by: Rob Herring <robh@kernel.org>
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
2017-12-02 22:42:34 +01:00
..
arm
clk
clock We have two changes to the core framework this time around. The first being a 2017-11-17 20:04:24 -08:00
display
dma
gpio gpio: gpiolib: Generalise state persistence beyond sleep 2017-12-02 22:42:34 +01:00
i2c
iio
input
interrupt-controller
leds
mailbox
media
memory
mfd
mips
mux
net
phy
pinctrl ARM: Device-tree updates for 4.15 2017-11-16 15:48:26 -08:00
power ARM: Device-tree updates for 4.15 2017-11-16 15:48:26 -08:00
pwm
regulator
reset ARM: SoC driver updates for v4.15 2017-11-16 16:05:01 -08:00
soc
sound
spmi
thermal ARM: Device-tree updates for 4.15 2017-11-16 15:48:26 -08:00