aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/hwmon/pwm-fan.c
diff options
context:
space:
mode:
authorGustavo A. R. Silva <[email protected]>2019-02-11 22:07:38 +0000
committerGuenter Roeck <[email protected]>2019-02-18 22:23:29 +0000
commite4e6c0b0ad79c077c6894b82edf9d7e214ccdf16 (patch)
treecdef7a958aff2dda8c23b6cdd7a50fd95aa74472 /drivers/hwmon/pwm-fan.c
parenthwmon: (ad7418) Catch I2C errors (diff)
downloadkernel-e4e6c0b0ad79c077c6894b82edf9d7e214ccdf16.tar.gz
kernel-e4e6c0b0ad79c077c6894b82edf9d7e214ccdf16.zip
hwmon: (f71882fg) Mark expected switch fall-through
In preparation to enabling -Wimplicit-fallthrough, mark switch cases where we are expecting to fall through. This patch fixes the following warnings: drivers/hwmon/f71882fg.c: In function ‘f71882fg_probe’: drivers/hwmon/f71882fg.c:2457:33: warning: this statement may fall through [-Wimplicit-fallthrough=] data->auto_point_temp_signed = 1; ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~ drivers/hwmon/f71882fg.c:2459:3: note: here case f71889fg: ^~~~ Warning level 3 was used: -Wimplicit-fallthrough=3 Notice that, in this particular case, the code comment is modified in accordance with what GCC is expecting to find. This patch is part of the ongoing efforts to enable -Wimplicit-fallthrough. Signed-off-by: Gustavo A. R. Silva <[email protected]> Signed-off-by: Guenter Roeck <[email protected]>
Diffstat (limited to 'drivers/hwmon/pwm-fan.c')
0 files changed, 0 insertions, 0 deletions