]> www.infradead.org Git - users/willy/xarray.git/commit
gpiolib: add support for disabling line bias
authorKent Gibson <warthog618@gmail.com>
Tue, 5 Nov 2019 02:04:25 +0000 (10:04 +0800)
committerBartosz Golaszewski <bgolaszewski@baylibre.com>
Tue, 12 Nov 2019 15:30:30 +0000 (16:30 +0100)
commit2148ad7790ea4f1f0081e6404fbb776bdbc793bb
tree43deadf60dfe7760cbb917f5460d416cd3c43ed5
parent7b479a8448c2e5ced36ca6a2d03178b920298ee5
gpiolib: add support for disabling line bias

Allow pull up/down bias to be disabled, allowing the line to float
or to be biased only by external circuitry.
Use case is for where the bias has been applied previously, either
by default or by the user, but that setting may conflict with the
current use of the line.

Signed-off-by: Kent Gibson <warthog618@gmail.com>
Signed-off-by: Bartosz Golaszewski <bgolaszewski@baylibre.com>
drivers/gpio/gpiolib.c
drivers/gpio/gpiolib.h
include/uapi/linux/gpio.h