]> www.infradead.org Git - users/jedix/linux-maple.git/commit
gpiolib: don't build HTE code with CONFIG_HTE disabled
authorBartosz Golaszewski <bartosz.golaszewski@linaro.org>
Mon, 17 Feb 2025 10:39:22 +0000 (11:39 +0100)
committerBartosz Golaszewski <bartosz.golaszewski@linaro.org>
Tue, 18 Feb 2025 10:26:33 +0000 (11:26 +0100)
commit63cdf6241ac7edd94cb4cd9a8f1ba2c3c61ed219
treecc139f1da3a004d6a0fd9cea1a5a6a03c5ba4b11
parentdea69f2d1cc8d9ecdc72ba350d10a1e71940ef18
gpiolib: don't build HTE code with CONFIG_HTE disabled

Hardware timestamping is only used on tegra186 platforms but we include
the code and export the symbols everywhere. Shrink the binary a bit by
compiling the relevant functions conditionally.

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