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)
commita411e81e61df24023f40255145d8f023402002c9
tree9fce75978e1553b206fea79511034453a174b5b7
parent192a35b1348275c8decf42452d382be21add938c
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