summaryrefslogtreecommitdiff
path: root/drivers/gpio/Kconfig
diff options
context:
space:
mode:
authorWilliam Breathitt Gray <william.gray@linaro.org>2022-12-27 17:09:39 +0300
committerBartosz Golaszewski <bartosz.golaszewski@linaro.org>2023-01-30 17:55:27 +0300
commit8978277c229b9502aba4654b1d6ec59c819e82ea (patch)
tree889414c98483f5935d711c865eb17b4ac0b6c62f /drivers/gpio/Kconfig
parent9eeaa60ead4b6dc84cef012aa9aee3eb48dc4930 (diff)
downloadlinux-8978277c229b9502aba4654b1d6ec59c819e82ea.tar.xz
gpio: regmap: Always set gpio_chip get_direction
If you only have reg_dat_base set, then it is input-only; if you only have reg_set_base set, then it is output-only. Thus, we can always set gpio_chip get_direction to gpio_regmap_get_direction and return GPIO_LINE_DIRECTION_IN/GPIO_LINE_DIRECTION_OUT given the respective register base addresses configuration. Reviewed-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com> Acked-by: Michael Walle <michael@walle.cc> Signed-off-by: William Breathitt Gray <william.gray@linaro.org> Signed-off-by: Bartosz Golaszewski <bartosz.golaszewski@linaro.org>
Diffstat (limited to 'drivers/gpio/Kconfig')
0 files changed, 0 insertions, 0 deletions