projects
/
linux.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
6ff838f
)
hwmon: (oxp-sensors) Fix pwm reading
author
Joaquín Ignacio Aramendía
<samsagax@gmail.com>
Mon, 28 Nov 2022 18:52:06 +0000
(15:52 -0300)
committer
Guenter Roeck
<linux@roeck-us.net>
Mon, 5 Dec 2022 00:45:03 +0000
(16:45 -0800)
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>
drivers/hwmon/oxp-sensors.c
patch
|
blob
|
history
diff --git
a/drivers/hwmon/oxp-sensors.c
b/drivers/hwmon/oxp-sensors.c
index c04277676b72719f071e3fb561b5f7e4d21c7598..f84ec8f8eda9187e5752a98ae6175595cfbccdfd 100644
(file)
--- 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)