linux-stable/include/linux/gpio
Linus Walleij 5923ea6c2c gpio: pass lookup and descriptor flags to request_own
When a gpio_chip wants to request a descriptor from itself
using gpiochip_request_own_desc() it needs to be able to specify
fully how to use the descriptor, notably line inversion
semantics. The workaround in the gpiolib.c can be removed
and cases (such as SPI CS) where we need at times to request
a GPIO with line inversion semantics directly on a chip for
workarounds, can be fully supported with this call.

Fix up some users of the API that weren't really using the
last flag to set up the line as input or output properly
but instead just calling direction setting explicitly
after requesting the line.

Cc: Martin Sperl <kernel@martin.sperl.org>
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
2019-06-07 23:20:23 +02:00
..
aspeed.h
consumer.h This is the bulk of GPIO changes for the v4.21 kernel series: 2018-12-28 20:00:21 -08:00
driver.h gpio: pass lookup and descriptor flags to request_own 2019-06-07 23:20:23 +02:00
gpio-reg.h
machine.h gpiolib: Introduce GPIO_LOOKUP_FLAGS_DEFAULT 2019-04-23 10:55:10 +02:00