summaryrefslogtreecommitdiff
path: root/drivers/hwmon/max6621.c
diff options
context:
space:
mode:
authorGustavo A. R. Silva <gustavoars@kernel.org>2020-11-20 21:36:09 +0300
committerGustavo A. R. Silva <gustavoars@kernel.org>2021-05-18 03:50:37 +0300
commit58e31cf015e68e2696cbced6f2128ec68162ef17 (patch)
tree707889402adda40d88ff4bec1475898ab2e8e3cb /drivers/hwmon/max6621.c
parent3752445d79ee73fc2cb08c35c82890b2ef5c9757 (diff)
downloadlinux-58e31cf015e68e2696cbced6f2128ec68162ef17.tar.xz
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 <linux@roeck-us.net> Signed-off-by: Gustavo A. R. Silva <gustavoars@kernel.org>
Diffstat (limited to 'drivers/hwmon/max6621.c')
-rw-r--r--drivers/hwmon/max6621.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/hwmon/max6621.c b/drivers/hwmon/max6621.c
index 367855d5edae..7821132e17fa 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;
}