Skip to content

Commit

Permalink
Add some missing breaks in aqc_is_visible() and update comment
Browse files Browse the repository at this point in the history
Signed-off-by: Aleksa Savic <savicaleksa83@gmail.com>
  • Loading branch information
aleksamagicka committed Sep 24, 2023
1 parent 4f37078 commit 9db8992
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion aquacomputer_d5next.c
Original file line number Diff line number Diff line change
Expand Up @@ -983,6 +983,7 @@ static umode_t aqc_is_visible(const void *data, enum hwmon_sensor_types type, u3
case hwmon_temp_offset:
if (priv->temp_ctrl_offset != 0)
return 0644;
break;
default:
break;
}
Expand Down Expand Up @@ -1108,9 +1109,10 @@ static umode_t aqc_is_visible(const void *data, enum hwmon_sensor_types type, u3
return 0444;
break;
case hwmon_fan_pulses:
/* Special case for flow sensor */
/* Special case for Quadro flow sensor */
if (priv->kind == quadro && channel == priv->num_fans)
return 0644;
break;
default:
break;
}
Expand Down

0 comments on commit 9db8992

Please sign in to comment.