Add LM99 support to the lm90 driver
PATCH 1/1 Add LM99 support to the lm90 driver
Hi Greg,
The following patch adds support for the LM99 chip to the lm90 driver, on popular request. The nVidia GeForce FX 5900 series cards have such a chip on-board for monitoring the GPU temperature.
Relevant pointers:
http://archives.andrew.net.au/lm-sensors/msg07671.html
http://secure.netroedge.com/~lm78/readticket.cgi?ticket61
http://secure.netroedge.com/~lm78/readticket.cgi?ticket62
Additional effects of the patch:
* Do not consider the lm90 driver experimental anymore. I have had enough testers and not a single problem report, the driver is working OK.
* Support the LM89. According to the datasheets, it is exactly the same chip as the LM99 (to the chip ID). We've never seen this chip in a computer so far, but it doesn't cost anything to support it (actually we cannot not support it, since we have no way to differenciate with the LM99).
* Scan two addresses instead of one. The LM99 and LM89 have a "-1" variant using an alternate address.
* Update copyright year.
* Reword the identification code a bit. It is hopefully slightly less unreadable.
This patch was successfully tested by Corey Hickey.
A similar patch has been applied to our CVS repository for Linux 2.4. Our user-space tools have been updated as well.
Please apply,
thanks.
drivers/i2c/chips/Kconfig renamed from drivers/i2c/chips.orig/Kconfig +3 -3
@@ -136,11 +136,11 @@ config SENSORS_LM90 tristate "National Semiconductor LM90 and compatibles" - depends on I2C && EXPERIMENTAL + depends on I2C select I2C_SENSOR help - If you say yes here you get support for National Semiconductor LM90 - and Analog Devices ADM1032 sensor chips. + If you say yes here you get support for National Semiconductor LM90, + LM89 and LM99, and Analog Devices ADM1032 sensor chips. This driver can also be built as a module. If so, the module will be called lm90.
drivers/i2c/chips/lm90.c renamed from drivers/i2c/chips.orig/lm90.c +37 -12
88 lines not on this page · raw message
Signature · 2 lines
Jean Delvare http://khali.linux-fr.org/
Greg KH
AppliedPATCH 1/1 Add LM99 support to the lm90 driver
Quoted 5 lines · Jean Delvare
Hi Greg,
The following patch adds support for the LM99 chip to the lm90 driver, on popular request. The nVidia GeForce FX 5900 series cards have such a chip on-board for monitoring the GPU temperature.
Applied, thanks.
greg k-h