hwmon: (lm75) Fix an incorrect comment
PATCH 1/1 hwmon: (lm75) Fix an incorrect comment
High-byte first is not opposite to the usual practice - that's what almost all hardware monitoring drivers do. It is opposite to the SMBus standard though.
Also delete a duplicate comment.
Signed-off-by Jean Delvare <[email protected]>
--- drivers/hwmon/lm75.c | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-)
drivers/hwmon/lm75.c +1 -4
@@ -248,7 +248,7 @@ static int lm75_detach_client(struct i2c/* All registers are word-sized, except for the configuration register. LM75 uses a high-byte first convention, which is exactly opposite to -the usual practice. */ +the SMBus standard. */ static int lm75_read_value (struct i2c_client *client,u8 reg) {if (reg =LM75_REG_CONF )
@@ -257,9 +257,6 @@ static int lm75_read_value(struct i2c_clreturn swab16 (i2c_smbus_read_word_data (client, reg)); } -/* All registers are word-sized, except for the configuration register. -LM75 uses a high-byte first convention, which is exactly opposite to -the usual practice. */ static int lm75_write_value (struct i2c_client *client,u8 reg,u16 value) {if (reg =LM75_REG_CONF )
Signature · 6 lines
Jean Delvare _______________________________________________ lm-sensors mailing list [email protected] http://lists.lm-sensors.org/mailman/listinfo/lm-sensors
Hi Jean:
Quoted 11 lines · Jean Delvare
High-byte first is not opposite to the usual practice - that's what almost all hardware monitoring drivers do. It is opposite to the SMBus standard though.
Also delete a duplicate comment.
Signed-off-by Jean Delvare <[email protected]>--- drivers/hwmon/lm75.c | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-)
Applied to hwmon-2.6.git/testing, thanks.
Signature · 8 lines
Mark M. Hoffman [email protected] _______________________________________________ lm-sensors mailing list [email protected] http://lists.lm-sensors.org/mailman/listinfo/lm-sensors