mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* [PATCH 2.6] I2C: Kill an unused i2c_adapter struct member
@ 2005-09-13 20:54 Jean Delvare
  0 siblings, 0 replies; only message in thread
From: Jean Delvare @ 2005-09-13 20:54 UTC (permalink / raw)
  To: Greg KH; +Cc: LM Sensors, LKML, Joern Engel

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.

Signed-off-by: Jean Delvare <khali@linux-fr.org>

 include/linux/i2c.h |    5 -----
 1 file changed, 5 deletions(-)

--- linux-2.6.14-rc1.orig/include/linux/i2c.h	2005-09-13 21:21:25.000000000 +0200
+++ linux-2.6.14-rc1/include/linux/i2c.h	2005-09-13 22:05:32.000000000 +0200
@@ -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;



-- 
Jean Delvare

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2005-09-13 20:53 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2005-09-13 20:54 [PATCH 2.6] I2C: Kill an unused i2c_adapter struct member Jean Delvare

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

Powered by JetHome