Skip to contentSkip to conversation

i2c: Drivers shouldn't include <linux/i2c-id.h>

PATCH In review Jean Delvare 3 participants 3 messages Nov 5, 2010 – Nov 13, 2010 1 message not in the archive

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

PATCH 2/3 i2c: Drivers shouldn't include <linux/i2c-id.h>

Drivers don't need to include <linux/i2c-id.h>, especially not when they don't use anything that header file provides.

Cc Michael Hunold <[email protected]>
Cc Mauro Carvalho Chehab <[email protected]>
---
 drivers/media/common/saa7146_i2c.c    |    1 -
 drivers/media/video/ir-kbd-i2c.c      |    1 -
 drivers/staging/olpc_dcon/olpc_dcon.c |    1 -
 3 files changed, 3 deletions(-)
drivers/media/common/saa7146_i2c.c +0 -1
@@ -391,7 +391,6 @@ static int saa7146_i2c_xfer(struct i2c_a
 
 /*****************************************************************************/
 /* i2c-adapter helper functions                                              */
-#include <linux/i2c-id.h>
 
 /* exported algorithm data */
 static struct i2c_algorithm saa7146_algo = {
drivers/media/video/ir-kbd-i2c.c +0 -1
@@ -44,7 +44,6 @@
 #include <linux/errno.h>
 #include <linux/slab.h>
 #include <linux/i2c.h>
-#include <linux/i2c-id.h>
 #include <linux/workqueue.h>
 
 #include <media/ir-core.h>
drivers/staging/olpc_dcon/olpc_dcon.c +0 -1
@@ -17,7 +17,6 @@
 #include <linux/console.h>
 #include <linux/i2c.h>
 #include <linux/platform_device.h>
-#include <linux/i2c-id.h>
 #include <linux/pci.h>
 #include <linux/pci_ids.h>
 #include <linux/interrupt.h>
Signature · 1 line
Jean Delvare

A message that is not in the archive (sent off-list or not yet received): [email protected]

#2 lore raw

Em 05-11-2010 18:07, Jean Delvare escreveu:

Quoted 6 lines

Drivers don't need to include <linux/i2c-id.h>, especially not when they don't use anything that header file provides.

Cc Michael Hunold <[email protected]>
Cc Mauro Carvalho Chehab <[email protected]>

I suspect that you want to include it via your tree, so:

Quoted 38 lines
---
 drivers/media/common/saa7146_i2c.c    |    1 -
 drivers/media/video/ir-kbd-i2c.c      |    1 -
 drivers/staging/olpc_dcon/olpc_dcon.c |    1 -
 3 files changed, 3 deletions(-)
drivers/media/common/saa7146_i2c.c +0 -1
@@ -391,7 +391,6 @@ static int saa7146_i2c_xfer(struct i2c_a
 
 /*****************************************************************************/
 /* i2c-adapter helper functions                                              */
-#include <linux/i2c-id.h>
 
 /* exported algorithm data */
 static struct i2c_algorithm saa7146_algo = {
drivers/media/video/ir-kbd-i2c.c +0 -1
@@ -44,7 +44,6 @@
 #include <linux/errno.h>
 #include <linux/slab.h>
 #include <linux/i2c.h>
-#include <linux/i2c-id.h>
 #include <linux/workqueue.h>
 
 #include <media/ir-core.h>
drivers/staging/olpc_dcon/olpc_dcon.c +0 -1
@@ -17,7 +17,6 @@
 #include <linux/console.h>
 #include <linux/i2c.h>
 #include <linux/platform_device.h>
-#include <linux/i2c-id.h>
 #include <linux/pci.h>
 #include <linux/pci_ids.h>
 #include <linux/interrupt.h>
#3 lore raw
Quoted 10 lines · Mauro Carvalho Chehab

Em 05-11-2010 18:07, Jean Delvare escreveu:

Quoted 6 lines

Drivers don't need to include <linux/i2c-id.h>, especially not when they don't use anything that header file provides.

Cc Michael Hunold <[email protected]>
Cc Mauro Carvalho Chehab <[email protected]>

I suspect that you want to include it via your tree, so:

Indeed, thanks.

Quoted 43 lines
Quoted 31 lines
---
 drivers/media/common/saa7146_i2c.c    |    1 -
 drivers/media/video/ir-kbd-i2c.c      |    1 -
 drivers/staging/olpc_dcon/olpc_dcon.c |    1 -
 3 files changed, 3 deletions(-)
drivers/media/common/saa7146_i2c.c +0 -1
@@ -391,7 +391,6 @@ static int saa7146_i2c_xfer(struct i2c_a
 
 /*****************************************************************************/
 /* i2c-adapter helper functions                                              */
-#include <linux/i2c-id.h>
 
 /* exported algorithm data */
 static struct i2c_algorithm saa7146_algo = {
drivers/media/video/ir-kbd-i2c.c +0 -1
@@ -44,7 +44,6 @@
 #include <linux/errno.h>
 #include <linux/slab.h>
 #include <linux/i2c.h>
-#include <linux/i2c-id.h>
 #include <linux/workqueue.h>
 
 #include <media/ir-core.h>

drivers/staging/olpc_dcon/olpc_dcon.c line 22

Quoted 7 lines
drivers/staging/olpc_dcon/olpc_dcon.c +0 -1
@@ -17,7 +17,6 @@
 #include <linux/console.h>
 #include <linux/i2c.h>
 #include <linux/platform_device.h>
-#include <linux/i2c-id.h>
 #include <linux/pci.h>
 #include <linux/pci_ids.h>
 #include <linux/interrupt.h>

--
To unsubscribe from this list: send the line "unsubscribe linux-i2c" in the body of a message to [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html

Signature · 1 line
Jean Delvare