Changeset 1115
- Timestamp:
- 06/04/01 00:01:14 (12 years ago)
- Files:
-
- 1 modified
-
lm-sensors/trunk/kernel/chips/thmc50.c (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
lm-sensors/trunk/kernel/chips/thmc50.c
r1101 r1115 118 118 static void thmc50_inc_use(struct i2c_client *client); 119 119 static void thmc50_dec_use(struct i2c_client *client); 120 static u16 swap_bytes(u16 val);121 120 static int thmc50_read_value(struct i2c_client *client, u8 reg); 122 121 static int thmc50_write_value(struct i2c_client *client, u8 reg, … … 329 328 } 330 329 331 u16 swap_bytes(u16 val)332 {333 return (val >> 8) | (val << 8);334 }335 336 330 /* All registers are word-sized, except for the configuration register. 337 331 THMC50 uses a high-byte first convention, which is exactly opposite to
