]> git.baikalelectronics.ru Git - kernel.git/commit
gpiolib: add hogs support for machine code
authorBartosz Golaszewski <brgl@bgdev.pl>
Tue, 10 Apr 2018 20:30:28 +0000 (22:30 +0200)
committerLinus Walleij <linus.walleij@linaro.org>
Wed, 16 May 2018 12:35:24 +0000 (14:35 +0200)
commit744182f99ba913107c1529ffacc7edd4552b55f5
tree9fce75978e1553b206fea79511034453a174b5b7
parent0cba6d3c992d9886c3690c381b0921b160f7162e
gpiolib: add hogs support for machine code

Board files constitute a significant part of the users of the legacy
GPIO framework. In many cases they only export a line and set its
desired value. We could use GPIO hogs for that like we do for DT and
ACPI but there's no support for that in machine code.

This patch proposes to extend the machine.h API with support for
registering hog tables in board files.

Signed-off-by: Bartosz Golaszewski <brgl@bgdev.pl>
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
Documentation/driver-api/gpio/board.rst
drivers/gpio/gpiolib.c
include/linux/gpio/machine.h