Changeset 5219

Show
Ignore:
Timestamp:
05/02/08 12:10:34 (7 months ago)
Author:
khali
Message:

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)

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • lm-sensors/trunk/CHANGES

    r5218 r5219  
    99  Module i2c-piix4: Minor cleanups (2.6 backport) 
    1010  Module i2c-sis5595: Minor cleanups (2.6 backport) 
     11  Module lm75: Fix an incorrect comment (2.6 backport) 
    1112  Program sensors-detect: New device ID for the SMSC SCH5317 
    1213                          Add SMSC SCH5127 detection 
  • lm-sensors/trunk/kernel/chips/lm75.c

    r4651 r5219  
    234234/* All registers are word-sized, except for the configuration register. 
    235235   LM75 uses a high-byte first convention, which is exactly opposite to 
    236    the usual practice. */ 
     236   the SMBus standard. */ 
    237237static int lm75_read_value(struct i2c_client *client, u8 reg) 
    238238{ 
     
    243243} 
    244244 
    245 /* All registers are word-sized, except for the configuration register. 
    246    LM75 uses a high-byte first convention, which is exactly opposite to 
    247    the usual practice. */ 
    248245static int lm75_write_value(struct i2c_client *client, u8 reg, u16 value) 
    249246{