linux-gpio.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] hte: tegra-194: Use proper includes
@ 2023-01-13  9:47 Linus Walleij
  2023-01-14 11:24 ` kernel test robot
  0 siblings, 1 reply; 2+ messages in thread
From: Linus Walleij @ 2023-01-13  9:47 UTC (permalink / raw)
  To: Dipen Patel; +Cc: linux-gpio, Linus Walleij

The test driver uses the gpiod consumer API so include the right
<linux/gpio/consumer.h> header. This may cause a problem with
struct of_device_id being implcitly pulled in by the legacy
header <linux/gpio.h> so include <linux/mod_device_table.h>
explicitly as well.

Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
---
 drivers/hte/hte-tegra194-test.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/drivers/hte/hte-tegra194-test.c b/drivers/hte/hte-tegra194-test.c
index 5d776a185bd6..a255ec3f8e8d 100644
--- a/drivers/hte/hte-tegra194-test.c
+++ b/drivers/hte/hte-tegra194-test.c
@@ -6,10 +6,11 @@
  */
 
 #include <linux/err.h>
+#include <linux/mod_device_table.h>
 #include <linux/module.h>
 #include <linux/moduleparam.h>
 #include <linux/interrupt.h>
-#include <linux/gpio.h>
+#include <linux/gpio/consumer.h>
 #include <linux/timer.h>
 #include <linux/platform_device.h>
 #include <linux/workqueue.h>
-- 
2.34.1


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

end of thread, other threads:[~2023-01-14 11:25 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2023-01-13  9:47 [PATCH] hte: tegra-194: Use proper includes Linus Walleij
2023-01-14 11:24 ` kernel test robot

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).