diff options
author | Guenter Roeck <linux@roeck-us.net> | 2024-07-21 06:41:17 -0700 |
---|---|---|
committer | Guenter Roeck <linux@roeck-us.net> | 2024-07-31 10:43:52 -0700 |
commit | 119abf7d1815f098f7f91ae7abc84324a19943d7 (patch) | |
tree | 8c4f5adf62517fc51f836dcf3dfccdbdb8c059bc /crypto/ecc_curve_defs.h | |
parent | 744ec4477b11c42e2c8de9eb8364675ae7a0bd81 (diff) |
hwmon: (max16065) Fix alarm attributes
Chips reporting overcurrent alarms report it in the second alarm register.
That means the second alarm register has to be read, even if the chip only
supports 8 or fewer ADC channels.
MAX16067 and MAX16068 report undervoltage and overvoltage alarms in
separate registers. Fold register contents together to report both with
the existing alarm attribute. This requires actually storing the chip type
in struct max16065_data. Rename the variable 'chip' to match the variable
name used in the probe function.
Reviewed-by: Tzung-Bi Shih <tzungbi@kernel.org>
Fixes: f5bae2642e3d ("hwmon: Driver for MAX16065 System Manager and compatibles")
Signed-off-by: Guenter Roeck <linux@roeck-us.net>
Diffstat (limited to 'crypto/ecc_curve_defs.h')
0 files changed, 0 insertions, 0 deletions