linux-stable/drivers/hte
Arnd Bergmann 9bc633117d hte: tegra194: add GPIOLIB dependency
The driver started calling into a few interfaces that are part of GPIOLIB and
don't have stub implementations otherwise:

drivers/hte/hte-tegra194.c: In function 'tegra_hte_line_xlate':
drivers/hte/hte-tegra194.c:424:48: error: implicit declaration of function 'gpio_device_get_base'; did you mean 'gpio_device_get_desc'? [-Werror=implicit-function-declaration]
  424 |                 line_id = desc->attr.line_id - gpio_device_get_base(gs->gdev);
      |                                                ^~~~~~~~~~~~~~~~~~~~
      |                                                gpio_device_get_desc

Add a Kconfig dependency to only allow building when this is defined.

Fixes: dc850faa28 ("hte: tegra194: don't access struct gpio_chip")
Signed-off-by: Arnd Bergmann <arnd@arndb.de>
Acked-by: Dipen Patel <dipenp@nvidia.com>
Signed-off-by: Bartosz Golaszewski <bartosz.golaszewski@linaro.org>
2023-10-23 20:07:36 +02:00
..
hte-tegra194-test.c hte: tegra-194: Use proper includes 2023-04-26 15:44:30 -07:00
hte-tegra194.c hte: tegra194: don't access struct gpio_chip 2023-10-18 09:47:48 +02:00
hte.c hte: Explicitly include correct DT includes 2023-08-28 13:31:06 -05:00
Kconfig hte: tegra194: add GPIOLIB dependency 2023-10-23 20:07:36 +02:00
Makefile hte: Add Tegra HTE test driver 2022-05-04 11:06:14 +02:00