Skip to content

Commit

Permalink
Bring hwmon-state up to date with hwmon-next
Browse files Browse the repository at this point in the history
Signed-off-by: Aleksa Savic <[email protected]>
  • Loading branch information
aleksamagicka committed Oct 15, 2023
1 parent 4bf521f commit 3e14448
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions aquacomputer_d5next.c
Original file line number Diff line number Diff line change
Expand Up @@ -1046,8 +1046,8 @@ static int aqc_read(struct device *dev, enum hwmon_sensor_types type, u32 attr,
switch (priv->kind) {
case aquaero:
ret = aqc_get_ctrl_val(priv,
AQUAERO_CTRL_PRESET_START +
channel * AQUAERO_CTRL_PRESET_SIZE, val, AQC_BE16);
AQUAERO_CTRL_PRESET_START + channel * AQUAERO_CTRL_PRESET_SIZE,
val, AQC_BE16);
if (ret < 0)
return ret;
*val = aqc_percent_to_pwm(*val);
Expand Down

0 comments on commit 3e14448

Please sign in to comment.