diff options
author | Joaquín Ignacio Aramendía <samsagax@gmail.com> | 2022-11-28 15:52:06 -0300 |
---|---|---|
committer | Guenter Roeck <linux@roeck-us.net> | 2022-12-04 16:45:03 -0800 |
commit | 0cd3ba682ae27cbe17c41f85b8e6db6da38296b2 (patch) | |
tree | 2e7b0211bf49d342e39dd7d094605a5c87ddfc1a /drivers/hwmon | |
parent | 6ff838f2877dcd5ec7db0745a2652a048a697991 (diff) |
hwmon: (oxp-sensors) Fix pwm reading
PWM reading is only 1 register long.
Signed-off-by: Joaquín Ignacio Aramendía <samsagax@gmail.com>
Link: https://lore.kernel.org/r/20221128185206.212022-1-samsagax@gmail.com
Signed-off-by: Guenter Roeck <linux@roeck-us.net>
Diffstat (limited to 'drivers/hwmon')
-rw-r--r-- | drivers/hwmon/oxp-sensors.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/hwmon/oxp-sensors.c b/drivers/hwmon/oxp-sensors.c index c04277676b72..f84ec8f8eda9 100644 --- a/drivers/hwmon/oxp-sensors.c +++ b/drivers/hwmon/oxp-sensors.c @@ -158,7 +158,7 @@ static int oxp_platform_read(struct device *dev, enum hwmon_sensor_types type, case hwmon_pwm: switch (attr) { case hwmon_pwm_input: - ret = read_from_ec(OXP_SENSOR_PWM_REG, 2, val); + ret = read_from_ec(OXP_SENSOR_PWM_REG, 1, val); if (ret) return ret; if (board == oxp_mini_amd) |