Skip to content

Commit 6a422a9

Browse files
CHKDSK88groeck
authored andcommitted
hwmon: ltc2991: fix register bits defines
In the LTC2991, V5 and V6 channels use the low nibble of the "V5, V6, V7, and V8 Control Register" for configuration, but currently, the high nibble is defined. This patch changes the defines to use the low nibble. Fixes: 2b9ea42 ("hwmon: Add driver for ltc2991") Signed-off-by: Pawel Dembicki <[email protected]> Message-ID: <[email protected]> Signed-off-by: Guenter Roeck <[email protected]>
1 parent 431c164 commit 6a422a9

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

drivers/hwmon/ltc2991.c

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -42,9 +42,9 @@
4242
#define LTC2991_V7_V8_FILT_EN BIT(7)
4343
#define LTC2991_V7_V8_TEMP_EN BIT(5)
4444
#define LTC2991_V7_V8_DIFF_EN BIT(4)
45-
#define LTC2991_V5_V6_FILT_EN BIT(7)
46-
#define LTC2991_V5_V6_TEMP_EN BIT(5)
47-
#define LTC2991_V5_V6_DIFF_EN BIT(4)
45+
#define LTC2991_V5_V6_FILT_EN BIT(3)
46+
#define LTC2991_V5_V6_TEMP_EN BIT(1)
47+
#define LTC2991_V5_V6_DIFF_EN BIT(0)
4848

4949
#define LTC2991_REPEAT_ACQ_EN BIT(4)
5050
#define LTC2991_T_INT_FILT_EN BIT(3)

0 commit comments

Comments
 (0)