From: Gustavo A. R. Silva Date: Fri, 20 Nov 2020 18:36:09 +0000 (-0600) Subject: hwmon: (max6621) Fix fall-through warnings for Clang X-Git-Tag: v5.14-rc1~155^2~12 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=58e31cf015e68e2696cbced6f2128ec68162ef17;p=thirdparty%2Flinux.git hwmon: (max6621) Fix fall-through warnings for Clang In preparation to enable -Wimplicit-fallthrough for Clang, fix a warning by explicitly adding a break statement instead of letting the code fall through to the next case. Link: https://github.com/KSPP/linux/issues/115 Acked-by: Guenter Roeck Signed-off-by: Gustavo A. R. Silva --- diff --git a/drivers/hwmon/max6621.c b/drivers/hwmon/max6621.c index 367855d5edaee..7821132e17faa 100644 --- a/drivers/hwmon/max6621.c +++ b/drivers/hwmon/max6621.c @@ -156,7 +156,7 @@ max6621_is_visible(const void *data, enum hwmon_sensor_types type, u32 attr, default: break; } - + break; default: break; }