Skip to content

Commit 0cd3ba6

Browse files
Samsagaxgroeck
authored andcommitted
hwmon: (oxp-sensors) Fix pwm reading
PWM reading is only 1 register long. Signed-off-by: Joaquín Ignacio Aramendía <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Guenter Roeck <[email protected]>
1 parent 6ff838f commit 0cd3ba6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

drivers/hwmon/oxp-sensors.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -158,7 +158,7 @@ static int oxp_platform_read(struct device *dev, enum hwmon_sensor_types type,
158158
case hwmon_pwm:
159159
switch (attr) {
160160
case hwmon_pwm_input:
161-
ret = read_from_ec(OXP_SENSOR_PWM_REG, 2, val);
161+
ret = read_from_ec(OXP_SENSOR_PWM_REG, 1, val);
162162
if (ret)
163163
return ret;
164164
if (board == oxp_mini_amd)

0 commit comments

Comments
 (0)