FIX case fall through

This commit is contained in:
Ondrej Čerman 2020-01-24 20:11:27 +01:00
parent c4e7e6ce1d
commit 7d971cce17

View file

@ -228,8 +228,8 @@ static int zenpower_read(struct device *dev, enum hwmon_sensor_types type,
case hwmon_in: case hwmon_in:
if (channel == 0) if (channel == 0)
return -EOPNOTSUPP; return -EOPNOTSUPP;
channel -= 1; // hwmon_in have different indexing, channel -= 1; // hwmon_in have different indexing, see note at zenpower_info
__attribute__ ((fallthrough)); // see note at zenpower_info // fall through
// Power / Current // Power / Current
case hwmon_curr: case hwmon_curr:
case hwmon_power: case hwmon_power: