mirror of
https://github.com/lm-sensors/lm-sensors.git
synced 2026-11-18 19:30:54 +00:00
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. (Backported from Linux 2.6) git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@5219 7894878c-1315-0410-8ee3-d5d059ff63e0
This commit is contained in:
1 parent
3a4c2b64d8
commit
6be54c1d09
2 files changed
+2
-4
No files matched your search
@@ -8,6 +8,7 @@ SVN-HEAD
|
||||
Module i2c-i801: Drop broken I2C block read support
|
||||
Module i2c-piix4: Minor cleanups (2.6 backport)
|
||||
Module i2c-sis5595: Minor cleanups (2.6 backport)
|
||||
Module lm75: Fix an incorrect comment (2.6 backport)
|
||||
Program sensors-detect: New device ID for the SMSC SCH5317
|
||||
Add SMSC SCH5127 detection
|
||||
Add National Semiconductor LM64 detection
|
||||
|
||||
+1
-4
@@ -233,7 +233,7 @@ static int lm75_detach_client(struct i2c_client *client)
|
||||
|
||||
/* 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)
|
||||
@@ -242,9 +242,6 @@ static int lm75_read_value(struct i2c_client *client, u8 reg)
|
||||
return 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)
|
||||
|
||||
Reference in new issue
Block a user