]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
gpio: introduce a header for symbols shared by suppliers and consumers
authorBartosz Golaszewski <bartosz.golaszewski@oss.qualcomm.com>
Mon, 23 Feb 2026 17:20:06 +0000 (18:20 +0100)
committerBartosz Golaszewski <bartosz.golaszewski@oss.qualcomm.com>
Fri, 27 Feb 2026 08:49:43 +0000 (09:49 +0100)
commitfa4a3a95139e7293c1333a33bd7b19e7261e3bd0
treeab6fa3dc7659aeba4ed2f328bc0fd4dc4df30cea
parentb2d51bc1601c762c63f19c119589a0a0c44bc8ec
gpio: introduce a header for symbols shared by suppliers and consumers

GPIO_LINE_DIRECTION_IN/OUT definitions are used both in supplier (GPIO
controller drivers) as well as consumer code. In order to not force the
consumers to include gpio/driver.h or - even worse - to redefine these
values, create a new header file - gpio/defs.h - and move them over
there. Include this header from both gpio/consumer.h and gpio/driver.h.

Reviewed-by: Linus Walleij <linusw@kernel.org>
Suggested-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
Reviewed-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
Link: https://patch.msgid.link/20260223172006.204268-1-bartosz.golaszewski@oss.qualcomm.com
Signed-off-by: Bartosz Golaszewski <bartosz.golaszewski@oss.qualcomm.com>
include/linux/gpio/consumer.h
include/linux/gpio/defs.h [new file with mode: 0644]
include/linux/gpio/driver.h