Skip to contentSkip to conversation

I2C: New lm92 chip driver

PATCH New Jean Delvare 2 participants 2 messages May 19, 2005

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 I2C: New lm92 chip driver

Hi Greg,

This is a new i2c chip driver named lm92. It supports the National Semiconductor LM92 and Maxim MAX6635 chips. This time I did not port the driver from the lm_sensors project but instead rewrote it. The reason is that the original driver has a different structure from the other i2c chip drivers, which would have made maintenance harder.

I don't have a compatible chip myself but could test my code thanks to Mark Hoffman's i2c-stub fake bus driver. Later on, James Chapman tested it on a real chip, successfully.

Please apply,
thanks.

drivers/i2c/chips/Kconfig renamed from drivers/i2c/chips.orig/Kconfig +11 -0
diff -ruN linux-2.6.11-mm1/drivers/i2c/chips.orig/Kconfig linux-2.6.11-mm1/drivers/i2c/chips/Kconfig
@@ -236,6 +236,17 @@
 	  This driver can also be built as a module.  If so, the module
 	  will be called lm90.
 
+config SENSORS_LM92
+	tristate "National Semiconductor LM92 and compatibles"
+	depends on I2C && EXPERIMENTAL
+	select I2C_SENSOR
+	help
+	  If you say yes here you get support for National Semiconductor LM92
+	  and Maxim MAX6635 sensor chips.
+
+	  This driver can also be built as a module.  If so, the module
+	  will be called lm92.
+
 config SENSORS_MAX1619
 	tristate "Maxim MAX1619 sensor chip"
 	depends on I2C && EXPERIMENTAL
drivers/i2c/chips/Makefile renamed from drivers/i2c/chips.orig/Makefile +1 -0
diff -ruN linux-2.6.11-mm1/drivers/i2c/chips.orig/Makefile linux-2.6.11-mm1/drivers/i2c/chips/Makefile
@@ -28,6 +28,7 @@
 obj-$(CONFIG_SENSORS_LM85)	+= lm85.o
 obj-$(CONFIG_SENSORS_LM87)	+= lm87.o
 obj-$(CONFIG_SENSORS_LM90)	+= lm90.o
+obj-$(CONFIG_SENSORS_LM92)	+= lm92.o
 obj-$(CONFIG_SENSORS_MAX1619)	+= max1619.o
 obj-$(CONFIG_SENSORS_M41T00)	+= m41t00.o
 obj-$(CONFIG_SENSORS_PC87360)	+= pc87360.o
drivers/i2c/chips/lm92.c renamed from drivers/i2c/chips.orig/lm92.c +423 -0

423 lines not on this page · raw message

Signature · 1 line
Jean Delvare
Applied
#1 lore raw

PATCH 1/1 I2C: New lm92 chip driver

Quoted 11 lines · Jean Delvare

Hi Greg,

This is a new i2c chip driver named lm92. It supports the National Semiconductor LM92 and Maxim MAX6635 chips. This time I did not port the driver from the lm_sensors project but instead rewrote it. The reason is that the original driver has a different structure from the other i2c chip drivers, which would have made maintenance harder.

I don't have a compatible chip myself but could test my code thanks to Mark Hoffman's i2c-stub fake bus driver. Later on, James Chapman tested it on a real chip, successfully.

Applied, thanks.

greg k-h