diff options
author | Gustavo A. R. Silva <gustavo@embeddedor.com> | 2018-07-02 16:30:17 -0500 |
---|---|---|
committer | Guenter Roeck <linux@roeck-us.net> | 2018-07-08 20:08:13 -0700 |
commit | ffb32432457c6a6deffb64982b54d8f7b72ef618 (patch) | |
tree | 7a3712e48a35abd06b118175ccdfd121a13e7fc1 /drivers/hwmon/nct6775.c | |
parent | 57fec3acb47c99c688de9daf4c6a2ffa364cdb16 (diff) | |
download | lwn-ffb32432457c6a6deffb64982b54d8f7b72ef618.tar.gz lwn-ffb32432457c6a6deffb64982b54d8f7b72ef618.zip |
hwmon: Mark expected switch fall-throughs
In preparation to enabling -Wimplicit-fallthrough, mark switch cases
where we are expecting to fall through.
Signed-off-by: Gustavo A. R. Silva <gustavo@embeddedor.com>
Reviewed-by: Jean Delvare <jdelvare@suse.de>
Signed-off-by: Guenter Roeck <linux@roeck-us.net>
Diffstat (limited to 'drivers/hwmon/nct6775.c')
-rw-r--r-- | drivers/hwmon/nct6775.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/hwmon/nct6775.c b/drivers/hwmon/nct6775.c index 37149909f8a8..c6bd61e4695a 100644 --- a/drivers/hwmon/nct6775.c +++ b/drivers/hwmon/nct6775.c @@ -2541,7 +2541,7 @@ static void pwm_update_registers(struct nct6775_data *data, int nr) case thermal_cruise: nct6775_write_value(data, data->REG_TARGET[nr], data->target_temp[nr]); - /* intentional */ + /* fall through */ default: reg = nct6775_read_value(data, data->REG_FAN_MODE[nr]); reg = (reg & ~data->tolerance_mask) | |