Skip to contentSkip to conversation

non-sensors i2c chip drivers

DISCUSSION Jean Delvare 2 participants 3 messages May 19, 2005

lore
Share & tools
lore
#0 lore raw

Hi Greg,

There are a number of i2c chip drivers that are not sensors related. A first example of this is eeprom, which is already in 2.6. I can think of at least four other drivers in the same case: ddcmon, bt869, pcf8574 and pcf8591. What do we want to do with these? Two points to be discussed:
physical location in the source tree, and position in the kernel configuration menu.

I think that it would make sense to have a specific menu entry for these, separate from the sensors stuff. Looks like an easy thing to do.

As for the physical location, we have a single "chips" directory and I think it can stay that way.

What do you think?

Thanks.

Signature · 2 lines
Jean Delvare
http://www.ensicaen.ismra.fr/~delvare/
#1 lore raw

Quoting myself:

Quoted 3 lines

I think that it would make sense to have a specific menu entry for these, separate from the sensors stuff. Looks like an easy thing to do.

Here is a proposed patch that does this. Comments welcome.

Thanks.

drivers/i2c/chips/Kconfig renamed from drivers/i2c/chips.orig/Kconfig +18 -13
@@ -2,7 +2,7 @@
 # I2C Sensor device configuration
 #
 
-menu "I2C Hardware Sensors Chip support"
+menu "Hardware Sensors Chip support"
 	depends on I2C
 
 config I2C_SENSOR
@@ -33,18 +33,6 @@
 	  This driver can also be built as a module.  If so, the module
 	  will be called asb100.
 
-config SENSORS_EEPROM
-	tristate "EEPROM (DIMM) reader"
-	depends on I2C && EXPERIMENTAL
-	select I2C_SENSOR
-	help
-	  If you say yes here you get read-only access to the EEPROM data
-	  available on modern memory DIMMs, and which could theoretically
-	  also be available on other devices.
-
-	  This driver can also be built as a module.  If so, the module
-	  will be called eeprom.
-
 config SENSORS_FSCHER
 	tristate "FSC Hermes"
 	depends on I2C && EXPERIMENTAL
@@ -194,3 +182,20 @@
 	  will be called w83627hf.
 
 endmenu
+
+menu "Other I2C Chip support"
+	depends on I2C
+
+config SENSORS_EEPROM
+	tristate "EEPROM reader"
+	depends on I2C && EXPERIMENTAL
+	select I2C_SENSOR
+	help
+	  If you say yes here you get read-only access to the EEPROM data
+	  available on modern memory DIMMs and Sony Vaio laptops.  Such
+	  EEPROMs could theoretically be available on other devices as well.
+
+	  This driver can also be built as a module.  If so, the module
+	  will be called eeprom.
+
+endmenu
Signature · 2 lines
Jean Delvare
http://www.ensicaen.ismra.fr/~delvare/
#2 lore raw
In reply to Jean Delvare
Quoted 7 lines · Jean Delvare

Quoting myself:

Quoted 3 lines

I think that it would make sense to have a specific menu entry for these, separate from the sensors stuff. Looks like an easy thing to do.

Here is a proposed patch that does this. Comments welcome.

Looks good to me, I've applied this.

thanks,

greg k-h