Skip to content

Commit

Permalink
hwmon: (adt7462) Fix pin 28 monitoring
Browse files Browse the repository at this point in the history
The ADT7462_PIN28_VOLT value is a 4-bit field, so the corresponding
shift must be 4.

Signed-off-by: Roger Blofeld <[email protected]>
Signed-off-by: Jean Delvare <[email protected]>
  • Loading branch information
Roger Blofeld authored and Jean Delvare committed Jan 10, 2010
1 parent 3c8ad49 commit bb595c9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/hwmon/adt7462.c
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,7 @@ static const unsigned short normal_i2c[] = { 0x58, 0x5C, I2C_CLIENT_END };
#define ADT7462_PIN24_SHIFT 6
#define ADT7462_PIN26_VOLT_INPUT 0x08
#define ADT7462_PIN25_VOLT_INPUT 0x20
#define ADT7462_PIN28_SHIFT 6 /* cfg3 */
#define ADT7462_PIN28_SHIFT 4 /* cfg3 */
#define ADT7462_PIN28_VOLT 0x5

#define ADT7462_REG_ALARM1 0xB8
Expand Down

0 comments on commit bb595c9

Please sign in to comment.