Skip to contentSkip to conversation

I2C: Kill an unused i2c_adapter struct member

PATCH New Jean Delvare 1 participant 1 message Sep 13, 2005 I2C

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 I2C: Kill an unused i2c_adapter struct member

Hi Greg, all,

Kill an unused member of the i2c_adapter structure. This additionally fixes a potential bug, because <linux/i2c.h> doesn't include <linux/config.h>, so different files including <linux/i2c.h> could see a different definition of the i2c_adapter structure, depending on them including <linux/config.h> (or other header files themselves including <linux/config.h>) before <linux/i2c.h>, or not.

Credits go to Jörn Engel for pointing me to the problem.

 include/linux/i2c.h |    5 -----
 1 file changed, 5 deletions(-)
include/linux/i2c.h +0 -5
@@ -230,11 +230,6 @@
 	struct device dev;		/* the adapter device */
 	struct class_device class_dev;	/* the class device */
 
-#ifdef CONFIG_PROC_FS 
-	/* No need to set this when you initialize the adapter          */
-	int inode;
-#endif /* def CONFIG_PROC_FS */
-
 	int nr;
 	struct list_head clients;
 	struct list_head list;
Signature · 1 line
Jean Delvare