Skip to contentSkip to conversation

New chip driver: lm90

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

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 New chip driver: lm90

Hi Greg,

This is my LM90/ADM1032 i2c chip driver ported to Linux 2.6, to be applied on top of your pending patches stack. In particular you have to apply it after Mark Hoffman's asb100 patch or it will get rejected.

Thanks.

drivers/i2c/chips/Kconfig +11 -0
diff -ruN linux-2.6.1-greg/drivers/i2c/chips/Kconfig linux-2.6.1-lm90/drivers/i2c/chips/Kconfig
@@ -101,6 +101,17 @@
 	  This driver can also be built as a module.  If so, the module
 	  will be called lm85.
 
+config SENSORS_LM90
+	tristate "National Semiconductor LM90 and compatibles"
+	depends on I2C && EXPERIMENTAL
+	select I2C_SENSOR
+	help
+	  If you say yes here you get support for National Semiconductor LM90
+	  and Analog Devices ADM1032 sensor chips.
+
+	  This driver can also be built as a module.  If so, the module
+	  will be called lm90.
+
 config SENSORS_VIA686A
 	tristate "VIA686A"
 	depends on I2C && EXPERIMENTAL
drivers/i2c/chips/Makefile +1 -0
diff -ruN linux-2.6.1-greg/drivers/i2c/chips/Makefile linux-2.6.1-lm90/drivers/i2c/chips/Makefile
@@ -13,4 +13,5 @@
 obj-$(CONFIG_SENSORS_LM78)	+= lm78.o
 obj-$(CONFIG_SENSORS_LM83)	+= lm83.o
 obj-$(CONFIG_SENSORS_LM85)	+= lm85.o
+obj-$(CONFIG_SENSORS_LM90)	+= lm90.o
 obj-$(CONFIG_SENSORS_VIA686A)	+= via686a.o
drivers/i2c/chips/lm90.c +520 -0

520 lines not on this page · raw message

include/linux/i2c-id.h +1 -0
diff -ruN linux-2.6.1-greg/include/linux/i2c-id.h linux-2.6.1-lm90/include/linux/i2c-id.h
@@ -154,6 +154,7 @@
 #define I2C_DRIVERID_W83627HF 1038
 #define I2C_DRIVERID_LM85 1039
 #define I2C_DRIVERID_LM83 1040
+#define I2C_DRIVERID_LM90 1042
 #define I2C_DRIVERID_ASB100 1043
 
 /*
Signature · 2 lines
Jean Delvare
http://www.ensicaen.ismra.fr/~delvare/
Applied
#1 lore raw

PATCH 1/1 New chip driver: lm90

Quoted 5 lines · Jean Delvare

Hi Greg,

This is my LM90/ADM1032 i2c chip driver ported to Linux 2.6, to be applied on top of your pending patches stack. In particular you have to apply it after Mark Hoffman's asb100 patch or it will get rejected.

Applied, thanks.

greg k-h