hwmon: (lm95234) Add support for LM95233
Subsystems (2)
Guenter Roeck
maintainerPATCH v2 2/2 hwmon: (lm95234) Add support for LM95233
LM95233 is similar to LM95234, but it only supports two instead of four external temperature sensors.
---
v2: Update Kconfig
Improve detection code (add more checks)
Update MODULE_DESCRIPTION
Documentation/hwmon/lm95234 | 15 +++++--- drivers/hwmon/Kconfig | 6 +-- drivers/hwmon/lm95234.c | 91 ++++++++++++++++++++++++++++++++------------- 3 files changed, 78 insertions(+), 34 deletions(-)
Documentation/hwmon/lm95234 +10 -5
@@ -2,6 +2,10 @@ Kernel driver lm95234 ========== Supported chips: + * National Semiconductor / Texas Instruments LM95233 + Addresses scanned: I2C 0x18, 0x2a, 0x2b + Datasheet: Publicly available at the Texas Instruments website + http://www.ti.com/product/lm95233 * National Semiconductor / Texas Instruments LM95234 Addresses scanned: I2C 0x18, 0x4d, 0x4e Datasheet: Publicly available at the Texas Instruments website
@@ -13,11 +17,12 @@ Author: Guenter Roeck <[email protected]> Description ----------- -LM95234 is an 11-bit digital temperature sensor with a 2-wire System Management -Bus (SMBus) interface and TrueTherm technology that can very accurately monitor -the temperature of four remote diodes as well as its own temperature. -The four remote diodes can be external devices such as microprocessors, -graphics processors or diode-connected 2N3904s. The LM95234's TruTherm +LM95233 and LM95234 are 11-bit digital temperature sensors with a 2-wire +System Management Bus (SMBus) interface and TrueTherm technology +that can very accurately monitor the temperature of two (LM95233) +or four (LM95234) remote diodes as well as its own temperature. +The remote diodes can be external devices such as microprocessors, +graphics processors or diode-connected 2N3904s. The chip's TruTherm beta compensation technology allows sensing of 90 nm or 65 nm process thermal diodes accurately.
drivers/hwmon/Kconfig +3 -3
@@ -1028,11 +1028,11 @@ config SENSORS_LM93 will be called lm93. config SENSORS_LM95234 - tristate "National Semiconductor LM95234" + tristate "National Semiconductor LM95234 and compatibles" depends on I2C help - If you say yes here you get support for the LM95234 temperature - sensor. + If you say yes here you get support for the LM95233 and LM95234 + temperature sensor chips. This driver can also be built as a module. If so, the module will be called lm95234.
drivers/hwmon/lm95234.c +65 -26
192 lines not on this page · raw message
Signature · 7 lines
1.9.1 _______________________________________________ lm-sensors mailing list [email protected] http://lists.lm-sensors.org/mailman/listinfo/lm-sensors
Quoted 20 lines · Guenter Roeck
LM95233 is similar to LM95234, but it only supports two instead of four external temperature sensors.
Signed-off-by Guenter Roeck <[email protected]>---
v2: UpdateKconfig
Improve detection code (add more checks)
UpdateMODULE_DESCRIPTIONDocumentation/hwmon/lm95234 | 15 +++++--- drivers/hwmon/Kconfig | 6 +-- drivers/hwmon/lm95234.c | 91 ++++++++++++++++++++++++++++++++------------- 3 files changed, 78 insertions(+), 34 deletions(-)(...)
drivers/hwmon/lm95234.c +0
-0
drivers/hwmon/lm95234.c static int lm95234_detect(struct i2c_client *client, · line 644
Quoted 5 lines
drivers/hwmon/lm95234.c +1
-1@@ -622,15 +641,31 @@ static int lm95234_detect(struct i2c_client *client,return -ENODEV ; chip_id =i2c_smbus_read_byte_data (client,LM95234_REG_CHIP_ID ); -if (chip_id !=LM95234_CHIP_ID ) +switch (chip_id) {
Missing space here again. Other than that:
Signature · 7 lines
Jean Delvare SUSE L3 Support _______________________________________________ lm-sensors mailing list [email protected] http://lists.lm-sensors.org/mailman/listinfo/lm-sensors
Guenter Roeck
maintainerQuoted 23 lines · Jean Delvare
Quoted 22 lines · Guenter Roeck
LM95233 is similar to LM95234, but it only supports two instead of four external temperature sensors.
Signed-off-by Guenter Roeck <[email protected]>---
v2: UpdateKconfig
Improve detection code (add more checks)
UpdateMODULE_DESCRIPTIONDocumentation/hwmon/lm95234 | 15 +++++--- drivers/hwmon/Kconfig | 6 +-- drivers/hwmon/lm95234.c | 91 ++++++++++++++++++++++++++++++++------------- 3 files changed, 78 insertions(+), 34 deletions(-)(...)
drivers/hwmon/lm95234.c +0
-0@@ -622,15 +641,31 @@ static int lm95234_detect(struct i2c_client *client,return -ENODEV ;
Quoted 6 lines
drivers/hwmon/lm95234.c static int lm95234_detect(struct i2c_client *client, · line 644
Quoted 3 lines
drivers/hwmon/lm95234.c +1
-1chip_id =i2c_smbus_read_byte_data (client,LM95234_REG_CHIP_ID ); -if (chip_id !=LM95234_CHIP_ID ) +switch (chip_id) {Missing space here again. Other than that:
Fixed.
Quoted 2 lines
Reviewed-by Jean Delvare <[email protected]>
Thanks!
Guenter
_______________________________________________
lm-sensors mailing list
[email protected]
http://lists.lm-sensors.org/mailman/listinfo/lm-sensors