diff options
author | Gustavo A. R. Silva | 2018-07-02 23:30:17 +0200 |
---|---|---|
committer | Guenter Roeck | 2018-07-09 05:08:13 +0200 |
commit | ffb32432457c6a6deffb64982b54d8f7b72ef618 (patch) | |
tree | 7a3712e48a35abd06b118175ccdfd121a13e7fc1 /drivers/hwmon/emc1403.c | |
parent | hwmon: (nct6775) Fix comment in the description of pwm_mode (diff) | |
download | kernel-qcow2-linux-ffb32432457c6a6deffb64982b54d8f7b72ef618.tar.gz kernel-qcow2-linux-ffb32432457c6a6deffb64982b54d8f7b72ef618.tar.xz kernel-qcow2-linux-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/emc1403.c')
-rw-r--r-- | drivers/hwmon/emc1403.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/hwmon/emc1403.c b/drivers/hwmon/emc1403.c index 1ea7ca510f84..aaebeb726d6a 100644 --- a/drivers/hwmon/emc1403.c +++ b/drivers/hwmon/emc1403.c @@ -443,8 +443,10 @@ static int emc1403_probe(struct i2c_client *client, switch (id->driver_data) { case emc1404: data->groups[2] = &emc1404_group; + /* fall through */ case emc1403: data->groups[1] = &emc1403_group; + /* fall through */ case emc1402: data->groups[0] = &emc1402_group; } |