Commit c947e51c authored by Gustavo A. R. Silva's avatar Gustavo A. R. Silva Committed by Guenter Roeck

hwmon: (adt7462) Mark expected switch fall-throughs

In preparation to enabling -Wimplicit-fallthrough, mark switch cases
where we are expecting to fall through.

Warning level 3 was used: -Wimplicit-fallthrough=3
Signed-off-by: default avatarGustavo A. R. Silva <gustavo@embeddedor.com>
Signed-off-by: default avatarGuenter Roeck <linux@roeck-us.net>
parent dbdd4f69
...@@ -448,6 +448,7 @@ static const char *voltage_label(struct adt7462_data *data, int which) ...@@ -448,6 +448,7 @@ static const char *voltage_label(struct adt7462_data *data, int which)
case 3: case 3:
return "+1.5V"; return "+1.5V";
} }
/* fall through */
case 2: case 2:
if (!(data->pin_cfg[1] & ADT7462_PIN22_INPUT)) if (!(data->pin_cfg[1] & ADT7462_PIN22_INPUT))
return "+12V3"; return "+12V3";
...@@ -505,6 +506,7 @@ static const char *voltage_label(struct adt7462_data *data, int which) ...@@ -505,6 +506,7 @@ static const char *voltage_label(struct adt7462_data *data, int which)
case 3: case 3:
return "+1.5"; return "+1.5";
} }
/* fall through */
case 11: case 11:
if (data->pin_cfg[3] >> ADT7462_PIN28_SHIFT == if (data->pin_cfg[3] >> ADT7462_PIN28_SHIFT ==
ADT7462_PIN28_VOLT && ADT7462_PIN28_VOLT &&
...@@ -542,6 +544,7 @@ static int voltage_multiplier(struct adt7462_data *data, int which) ...@@ -542,6 +544,7 @@ static int voltage_multiplier(struct adt7462_data *data, int which)
case 3: case 3:
return 7800; return 7800;
} }
/* fall through */
case 2: case 2:
if (!(data->pin_cfg[1] & ADT7462_PIN22_INPUT)) if (!(data->pin_cfg[1] & ADT7462_PIN22_INPUT))
return 62500; return 62500;
...@@ -599,6 +602,7 @@ static int voltage_multiplier(struct adt7462_data *data, int which) ...@@ -599,6 +602,7 @@ static int voltage_multiplier(struct adt7462_data *data, int which)
case 3: case 3:
return 7800; return 7800;
} }
/* fall through */
case 11: case 11:
case 12: case 12:
if (data->pin_cfg[3] >> ADT7462_PIN28_SHIFT == if (data->pin_cfg[3] >> ADT7462_PIN28_SHIFT ==
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment