Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit bb595c92 authored by Roger Blofeld's avatar Roger Blofeld Committed by Jean Delvare
Browse files

hwmon: (adt7462) Fix pin 28 monitoring



The ADT7462_PIN28_VOLT value is a 4-bit field, so the corresponding
shift must be 4.

Signed-off-by: default avatarRoger Blofeld <blofeldus@yahoo.com>
Signed-off-by: default avatarJean Delvare <khali@linux-fr.org>
parent 3c8ad49b
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -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