Skip to contentSkip to conversation

watchdog: twl4030_wdt: add missing mod_devicetable.h include

PATCH Applied Dmitry Torokhov 5 participants 11 messages Sep 27, 2022 – Oct 28, 2022

Subsystems (5)
lore
Share & tools
lore
#0 lore raw

PATCH v2 1/3 watchdog: twl4030_wdt: add missing mod_devicetable.h include

The driver is using of_device_id and therefore needs to include mod_devicetable.h header. We used to get this definition indirectly via inclusion of matrix_keypad.h from twl.h, but we are cleaning up matrix_keypad.h from unnecessary includes.

---

v2: changed from of.h to mod_devicetable.h per Andy Shevchenko

 drivers/watchdog/twl4030_wdt.c | 1 +
 1 file changed, 1 insertion(+)
drivers/watchdog/twl4030_wdt.c +1 -0
index 355e428c0b99..36b4a660928d 100644
@@ -9,6 +9,7 @@
 #include <linux/types.h>
 #include <linux/slab.h>
 #include <linux/kernel.h>
+#include <linux/mod_devicetable.h>
 #include <linux/watchdog.h>
 #include <linux/platform_device.h>
 #include <linux/mfd/twl.h>
Signature · 1 line
2.38.0.rc1.362.ged0d419d3c-goog
#1 lore raw

PATCH v2 2/3 mfd: twl4030-irq: add missing device.h include

The driver is using "struct device" and therefore needs to include device.h header. We used to get this definition indirectly via inclusion of matrix_keypad.h from twl.h, but we are cleaning up matrix_keypad.h from unnecessary includes.

---

v2: added Andy's reviewed-by

 drivers/mfd/twl4030-irq.c | 1 +
 1 file changed, 1 insertion(+)
drivers/mfd/twl4030-irq.c +1 -0
index 4f576f0160a9..87496c1cb8bc 100644
@@ -14,6 +14,7 @@
  * by syed khasim <[email protected]>
  */
 
+#include <linux/device.h>
 #include <linux/export.h>
 #include <linux/interrupt.h>
 #include <linux/irq.h>
Signature · 1 line
2.38.0.rc1.362.ged0d419d3c-goog
maintainer Applied
#2 lore raw

Re: [PATCH v2 2/3] mfd: twl4030-irq: add missing device.h include

Quoted 5 lines · Dmitry Torokhov

The driver is using "struct device" and therefore needs to include device.h header. We used to get this definition indirectly via inclusion of matrix_keypad.h from twl.h, but we are cleaning up matrix_keypad.h from unnecessary includes.

Quoted 8 lines

---

v2: added Andy's reviewed-by

 drivers/mfd/twl4030-irq.c | 1 +
 1 file changed, 1 insertion(+)

Applied, thanks.

Signature · 1 line
Lee Jones [李琼斯]
#3 lore raw

PATCH v2 3/3 iio: adc: twl4030-madc: add missing of.h include

In reply to Dmitry Torokhov

The driver is using of_device_id/of_match_ptr() and therefore needs to include of.h header. We used to get this definition indirectly via inclusion of matrix_keypad.h from twl.h, but we are cleaning up matrix_keypad.h from unnecessary includes.

---

v2: adjusted patch description

 drivers/iio/adc/twl4030-madc.c | 1 +
 1 file changed, 1 insertion(+)
drivers/iio/adc/twl4030-madc.c +1 -0
index f8f8aea15612..c279c4f2c9b7 100644
@@ -30,6 +30,7 @@
 #include <linux/types.h>
 #include <linux/gfp.h>
 #include <linux/err.h>
+#include <linux/of.h>
 #include <linux/regulator/consumer.h>
 
 #include <linux/iio/iio.h>
Signature · 1 line
2.38.0.rc1.362.ged0d419d3c-goog
Reviewed-by on v2 3/3
#4 lore raw

Re: [PATCH v2 3/3] iio: adc: twl4030-madc: add missing of.h include

Quoted 4 lines · Dmitry Torokhov

The driver is using of_device_id/of_match_ptr() and therefore needs to include of.h header. We used to get this definition indirectly via inclusion of matrix_keypad.h from twl.h, but we are cleaning up matrix_keypad.h from unnecessary includes.

Quoted 23 lines

---

v2: adjusted patch description

 drivers/iio/adc/twl4030-madc.c | 1 +
 1 file changed, 1 insertion(+)
drivers/iio/adc/twl4030-madc.c +1 -0
index f8f8aea15612..c279c4f2c9b7 100644
@@ -30,6 +30,7 @@
 #include <linux/types.h>
 #include <linux/gfp.h>
 #include <linux/err.h>
+#include <linux/of.h>
 #include <linux/regulator/consumer.h>
 
 #include <linux/iio/iio.h>
Signature · 1 line
2.38.0.rc1.362.ged0d419d3c-goog
Signature · 2 lines
With Best Regards,
Andy Shevchenko
maintainer Acked-by
#5 lore raw

Re: [PATCH v2 3/3] iio: adc: twl4030-madc: add missing of.h include

Quoted 7 lines · On Tue, 27 Sep 2022 19:20:00 +0300 Andy Shevchenko…
Quoted 4 lines · Dmitry Torokhov

The driver is using of_device_id/of_match_ptr() and therefore needs to include of.h header. We used to get this definition indirectly via inclusion of matrix_keypad.h from twl.h, but we are cleaning up matrix_keypad.h from unnecessary includes.

Applied to the togreg branch of iio.git and pushed out as testing for 0-day to take a look.

Note that this is 6.2 material now - if that's an issue for the matrix_keypad.h cleanup then feel free to take it via the input tree with

but shout in reply to this so I know to drop it from the iio tree.

Thanks,

Jonathan

Quoted 25 lines
Quoted 24 lines

---

v2: adjusted patch description

 drivers/iio/adc/twl4030-madc.c | 1 +
 1 file changed, 1 insertion(+)
drivers/iio/adc/twl4030-madc.c +1 -0
index f8f8aea15612..c279c4f2c9b7 100644
@@ -30,6 +30,7 @@
 #include <linux/types.h>
 #include <linux/gfp.h>
 #include <linux/err.h>
+#include <linux/of.h>
 #include <linux/regulator/consumer.h>
 
 #include <linux/iio/iio.h>
Signature · 1 line
2.38.0.rc1.362.ged0d419d3c-goog
#6 lore raw

Re: [PATCH v2 3/3] iio: adc: twl4030-madc: add missing of.h include

Quoted 9 lines · Jonathan Cameron
Quoted 6 lines · On Tue, 27 Sep 2022 19:20:00 +0300 Andy Shevchenko…
Quoted 4 lines · Dmitry Torokhov

The driver is using of_device_id/of_match_ptr() and therefore needs to include of.h header. We used to get this definition indirectly via inclusion of matrix_keypad.h from twl.h, but we are cleaning up matrix_keypad.h from unnecessary includes.

Quoted 8 lines
Quoted 1 line

Applied to the togreg branch of iio.git and pushed out as testing for 0-day to take a look.

Note that this is 6.2 material now - if that's an issue for the matrix_keypad.h cleanup then feel free to take it via the input tree with

but shout in reply to this so I know to drop it from the iio tree.

OK, it is not urgent, but I do not want to lose matrix keypad changes...

How about I'll wait to see where the rest of the patches end, and if they end up in 6.1 I'll queue twl4030-madc.c through my tree together with the header change?

Thanks.

Signature · 1 line
Dmitry
maintainer
#7 lore raw

Re: [PATCH v2 3/3] iio: adc: twl4030-madc: add missing of.h include

Quoted 19 lines · On Sat, 1 Oct 2022 15:14:08 -0700 Dmitry Torokhov <[email protected]>…
Quoted 9 lines · Jonathan Cameron
Quoted 6 lines · On Tue, 27 Sep 2022 19:20:00 +0300 Andy Shevchenko…
Quoted 4 lines · Dmitry Torokhov

The driver is using of_device_id/of_match_ptr() and therefore needs to include of.h header. We used to get this definition indirectly via inclusion of matrix_keypad.h from twl.h, but we are cleaning up matrix_keypad.h from unnecessary includes.

Quoted 8 lines
Quoted 1 line

Applied to the togreg branch of iio.git and pushed out as testing for 0-day to take a look.

Note that this is 6.2 material now - if that's an issue for the matrix_keypad.h cleanup then feel free to take it via the input tree with

but shout in reply to this so I know to drop it from the iio tree.

Quoted 8 lines

OK, it is not urgent, but I do not want to lose matrix keypad changes...

How about I'll wait to see where the rest of the patches end, and if they end up in 6.1 I'll queue twl4030-madc.c through my tree together with the header change?

Thanks.

Ok. I'll drop it for now - let me know if I should pick it up once everything settles down.

Jonathan

#8 lore raw

Re: [PATCH v2 3/3] iio: adc: twl4030-madc: add missing of.h include

Quoted 24 lines · Jonathan Cameron
Quoted 21 lines · On Sat, 1 Oct 2022 15:14:08 -0700 Dmitry Torokhov <[email protected]>…
Quoted 9 lines · Jonathan Cameron
Quoted 6 lines · On Tue, 27 Sep 2022 19:20:00 +0300 Andy Shevchenko…
Quoted 4 lines · Dmitry Torokhov

The driver is using of_device_id/of_match_ptr() and therefore needs to include of.h header. We used to get this definition indirectly via inclusion of matrix_keypad.h from twl.h, but we are cleaning up matrix_keypad.h from unnecessary includes.

Quoted 8 lines
Quoted 1 line

Applied to the togreg branch of iio.git and pushed out as testing for 0-day to take a look.

Note that this is 6.2 material now - if that's an issue for the matrix_keypad.h cleanup then feel free to take it via the input tree with

but shout in reply to this so I know to drop it from the iio tree.

OK, it is not urgent, but I do not want to lose matrix keypad changes...

Quoted 8 lines
Quoted 6 lines

How about I'll wait to see where the rest of the patches end, and if they end up in 6.1 I'll queue twl4030-madc.c through my tree together with the header change?

Thanks.

Ok. I'll drop it for now - let me know if I should pick it up once everything settles down.

Because the other patches have landed in 6.1 timeframe I picked up this patch and the header change myself.

Thanks.

Signature · 1 line
Dmitry
Reviewed-by on v2 3/3
#9 lore raw

Re: [PATCH v2 3/3] iio: adc: twl4030-madc: add missing of.h include

In reply to Dmitry Torokhov
Quoted 4 lines · Dmitry Torokhov

The driver is using of_device_id/of_match_ptr() and therefore needs to include of.h header. We used to get this definition indirectly via inclusion of matrix_keypad.h from twl.h, but we are cleaning up matrix_keypad.h from unnecessary includes.

Quoted 23 lines

---

v2: adjusted patch description

 drivers/iio/adc/twl4030-madc.c | 1 +
 1 file changed, 1 insertion(+)
drivers/iio/adc/twl4030-madc.c +1 -0
index f8f8aea15612..c279c4f2c9b7 100644
@@ -30,6 +30,7 @@
 #include <linux/types.h>
 #include <linux/gfp.h>
 #include <linux/err.h>
+#include <linux/of.h>
 #include <linux/regulator/consumer.h>
 
 #include <linux/iio/iio.h>
Signature · 1 line
2.38.0.rc1.362.ged0d419d3c-goog
Signature · 2 lines
With Best Regards,
Andy Shevchenko
maintainer Reviewed-by on v2 1/3
#10 lore raw
In reply to Dmitry Torokhov
Quoted 6 lines · Dmitry Torokhov

The driver is using of_device_id and therefore needs to include mod_devicetable.h header. We used to get this definition indirectly via inclusion of matrix_keypad.h from twl.h, but we are cleaning up matrix_keypad.h from unnecessary includes.

Quoted 22 lines

---

v2: changed from of.h to mod_devicetable.h per Andy Shevchenko

 drivers/watchdog/twl4030_wdt.c | 1 +
 1 file changed, 1 insertion(+)
drivers/watchdog/twl4030_wdt.c +1 -0
index 355e428c0b99..36b4a660928d 100644
@@ -9,6 +9,7 @@
 #include <linux/types.h>
 #include <linux/slab.h>
 #include <linux/kernel.h>
+#include <linux/mod_devicetable.h>
 #include <linux/watchdog.h>
 #include <linux/platform_device.h>
 #include <linux/mfd/twl.h>
Signature · 1 line
2.38.0.rc1.362.ged0d419d3c-goog