Skip to contentSkip to conversation

extcon: max3355: include mod_devicetable.h

PATCH Applied Arnd Bergmann 4 participants 5 messages Jul 11, 2018 – Jul 12, 2018 External connector subsystem (extcon)

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 extcon: max3355: include mod_devicetable.h

Another driver turned up that is missing linux/mod_devicetable.h after the device IDs are split out from linux/platform_device.h:

drivers/extcon/extcon-max3355.c:127:34: error: array type has incomplete element type 'struct of_device_id'
static const struct of_device_id max3355_match_table[] = {

Fixes ac3167257b9f ("headers: separate linux/mod_devicetable.h from linux/platform_device.h")

---
Greg, please add that to the char-misc tree that already has other related patches.

---
 drivers/extcon/extcon-max3355.c | 1 +
 1 file changed, 1 insertion(+)
drivers/extcon/extcon-max3355.c +1 -0
index 0aa410836f4e..1335a476bfec 100644
@@ -14,6 +14,7 @@
 #include <linux/gpio/consumer.h>
 #include <linux/interrupt.h>
 #include <linux/module.h>
+#include <linux/mod_devicetable.h>
 #include <linux/platform_device.h>
 
 struct max3355_data {
Signature · 1 line
2.9.0
maintainer Applied
#1 lore raw
Quoted 21 lines · Arnd Bergmann

Another driver turned up that is missing linux/mod_devicetable.h after the device IDs are split out from linux/platform_device.h:

drivers/extcon/extcon-max3355.c:127:34: error: array type has incomplete element type 'struct of_device_id'
static const struct of_device_id max3355_match_table[] = {

Fixes ac3167257b9f ("headers: separate linux/mod_devicetable.h from linux/platform_device.h")

---
Greg, please add that to the char-misc tree that already has other related patches.

---
 drivers/extcon/extcon-max3355.c | 1 +
 1 file changed, 1 insertion(+)
drivers/extcon/extcon-max3355.c +0 -0
index 0aa410836f4e..1335a476bfec 100644

drivers/extcon/extcon-max3355.c line 20

Quoted 7 lines
drivers/extcon/extcon-max3355.c +1 -0
@@ -14,6 +14,7 @@
 #include <linux/gpio/consumer.h>
 #include <linux/interrupt.h>
 #include <linux/module.h>
+#include <linux/mod_devicetable.h>
 #include <linux/platform_device.h>
 
 struct max3355_data {

Applied it. Thanks.

Signature · 3 lines
Best Regards,
Chanwoo Choi
Samsung Electronics
maintainer
#2 lore raw
Quoted 27 lines · Chanwoo Choi
Quoted 26 lines · Arnd Bergmann

Another driver turned up that is missing linux/mod_devicetable.h after the device IDs are split out from linux/platform_device.h:

drivers/extcon/extcon-max3355.c:127:34: error: array type has incomplete element type 'struct of_device_id'
static const struct of_device_id max3355_match_table[] = {

Fixes ac3167257b9f ("headers: separate linux/mod_devicetable.h from linux/platform_device.h")

---
Greg, please add that to the char-misc tree that already has other related patches.

---
 drivers/extcon/extcon-max3355.c | 1 +
 1 file changed, 1 insertion(+)
drivers/extcon/extcon-max3355.c +1 -0
index 0aa410836f4e..1335a476bfec 100644
@@ -14,6 +14,7 @@
 #include <linux/gpio/consumer.h>
 #include <linux/interrupt.h>
 #include <linux/module.h>
+#include <linux/mod_devicetable.h>
 #include <linux/platform_device.h>
 
Quoted 5 lines

drivers/extcon/extcon-max3355.c line 20

Quoted 2 lines
drivers/extcon/extcon-max3355.c +0 -0
 struct max3355_data {

Applied it. Thanks.

If Greg pick up this patch, I'll drop it from extcon git.

Signature · 3 lines
Best Regards,
Chanwoo Choi
Samsung Electronics
#3 lore raw
Quoted 28 lines · Chanwoo Choi
Quoted 27 lines · Chanwoo Choi
Quoted 26 lines · Arnd Bergmann

Another driver turned up that is missing linux/mod_devicetable.h after the device IDs are split out from linux/platform_device.h:

drivers/extcon/extcon-max3355.c:127:34: error: array type has incomplete element type 'struct of_device_id'
static const struct of_device_id max3355_match_table[] = {

Fixes ac3167257b9f ("headers: separate linux/mod_devicetable.h from linux/platform_device.h")

---
Greg, please add that to the char-misc tree that already has other related patches.

---
 drivers/extcon/extcon-max3355.c | 1 +
 1 file changed, 1 insertion(+)
drivers/extcon/extcon-max3355.c +1 -0
index 0aa410836f4e..1335a476bfec 100644
@@ -14,6 +14,7 @@
 #include <linux/gpio/consumer.h>
 #include <linux/interrupt.h>
 #include <linux/module.h>
+#include <linux/mod_devicetable.h>
 #include <linux/platform_device.h>
 
Quoted 7 lines
Quoted 5 lines

drivers/extcon/extcon-max3355.c line 20

Quoted 2 lines
drivers/extcon/extcon-max3355.c +0 -0
 struct max3355_data {

Applied it. Thanks.

If Greg pick up this patch, I'll drop it from extcon git.

Greg picked it up already :)

thanks,

greg k-h

Acked-by on v1 1/1
#4 lore raw
In reply to Arnd Bergmann
Quoted 8 lines · Arnd Bergmann

Another driver turned up that is missing linux/mod_devicetable.h after the device IDs are split out from linux/platform_device.h:

drivers/extcon/extcon-max3355.c:127:34: error: array type has incomplete element type 'struct of_device_id'
static const struct of_device_id max3355_match_table[] = {

Fixes ac3167257b9f ("headers: separate linux/mod_devicetable.h from linux/platform_device.h")

Sorry for the delay. I've been traveling.
And Thanks.

Quoted 20 lines

---
Greg, please add that to the char-misc tree that already has other related patches.

---
 drivers/extcon/extcon-max3355.c | 1 +
 1 file changed, 1 insertion(+)
drivers/extcon/extcon-max3355.c +1 -0
index 0aa410836f4e..1335a476bfec 100644
@@ -14,6 +14,7 @@
 #include <linux/gpio/consumer.h>
 #include <linux/interrupt.h>
 #include <linux/module.h>
+#include <linux/mod_devicetable.h>
 #include <linux/platform_device.h>
 
 struct max3355_data {
Signature · 1 line
~Randy