timestamp.lists.linux.dev archive mirror
 help / color / mirror / Atom feed
* [PATCH] hte: tegra194: add GPIOLIB dependency
@ 2023-10-23 11:56 Arnd Bergmann
  2023-10-23 12:00 ` Bartosz Golaszewski
  0 siblings, 1 reply; 5+ messages in thread
From: Arnd Bergmann @ 2023-10-23 11:56 UTC (permalink / raw)
  To: Dipen Patel, Andy Shevchenko, Bartosz Golaszewski, Linus Walleij
  Cc: Arnd Bergmann, timestamp, linux-kernel

From: Arnd Bergmann <arnd@arndb.de>

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: dc850faa28ee0 ("hte: tegra194: don't access struct gpio_chip")
Signed-off-by: Arnd Bergmann <arnd@arndb.de>
---
 drivers/hte/Kconfig | 1 +
 1 file changed, 1 insertion(+)

diff --git a/drivers/hte/Kconfig b/drivers/hte/Kconfig
index 083e67492bf2e..641af722b555d 100644
--- a/drivers/hte/Kconfig
+++ b/drivers/hte/Kconfig
@@ -17,6 +17,7 @@ if HTE
 config HTE_TEGRA194
 	tristate "NVIDIA Tegra194 HTE Support"
 	depends on (ARCH_TEGRA_194_SOC || COMPILE_TEST)
+	depends on GPIOLIB
 	help
 	  Enable this option for integrated hardware timestamping engine also
 	  known as generic timestamping engine (GTE) support on NVIDIA Tegra194
-- 
2.39.2


^ permalink raw reply related	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2023-10-23 18:20 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2023-10-23 11:56 [PATCH] hte: tegra194: add GPIOLIB dependency Arnd Bergmann
2023-10-23 12:00 ` Bartosz Golaszewski
2023-10-23 12:02   ` Bartosz Golaszewski
2023-10-23 17:26     ` Dipen Patel
2023-10-23 18:20       ` Bartosz Golaszewski

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).