]> www.infradead.org Git - users/jedix/linux-maple.git/commit
gpiolib: move all includes to the top of gpio/consumer.h
authorBartosz Golaszewski <bartosz.golaszewski@linaro.org>
Mon, 17 Feb 2025 10:39:21 +0000 (11:39 +0100)
committerBartosz Golaszewski <bartosz.golaszewski@linaro.org>
Tue, 18 Feb 2025 10:26:33 +0000 (11:26 +0100)
commitdea69f2d1cc8d9ecdc72ba350d10a1e71940ef18
tree51572f353e802092035bc79596f7654bcd9b1707
parentf04867a5d0d3a42fd3b7471343091a22363139e3
gpiolib: move all includes to the top of gpio/consumer.h

We have several conditional includes depending on !CONFIG_GPIOLIB. This
is supposed to reduce compilation time with CONFIG_GPIOLIB=y but in
practice there's no difference on modern machines. It makes adding new
stubs that depend on more than just GPIOLIB harder so move them all to
the top, unduplicate them and replace asm/ with preferred linux/
alternatives.

Reviewed-by: Linus Walleij <linus.walleij@linaro.org>
Link: https://lore.kernel.org/r/20250217103922.151047-1-brgl@bgdev.pl
Signed-off-by: Bartosz Golaszewski <bartosz.golaszewski@linaro.org>
include/linux/gpio/consumer.h