summaryrefslogtreecommitdiff
path: root/drivers/hwmon/max6620.c
diff options
context:
space:
mode:
authorKrzysztof Kozlowski <krzysztof.kozlowski@linaro.org>2023-04-06 22:30:34 +0200
committerGuenter Roeck <linux@roeck-us.net>2023-04-19 07:08:37 -0700
commitb3fcd02c608184e1ab42710d4bc58b4c15fbf873 (patch)
treefaa5b4f40c43a6d9498ed2dca77a75b1e9a7f1cc /drivers/hwmon/max6620.c
parent822ce415baa4f46e0c8fe03944ccd1bcee199583 (diff)
hwmon: max6620: constify pointers to hwmon_channel_info
Statically allocated array of pointed to hwmon_channel_info can be made const for safety. Signed-off-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org> Signed-off-by: Guenter Roeck <linux@roeck-us.net>
Diffstat (limited to 'drivers/hwmon/max6620.c')
-rw-r--r--drivers/hwmon/max6620.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/hwmon/max6620.c b/drivers/hwmon/max6620.c
index 202b6438179d..0f277d945ea2 100644
--- a/drivers/hwmon/max6620.c
+++ b/drivers/hwmon/max6620.c
@@ -401,7 +401,7 @@ error:
return ret;
}
-static const struct hwmon_channel_info *max6620_info[] = {
+static const struct hwmon_channel_info * const max6620_info[] = {
HWMON_CHANNEL_INFO(fan,
HWMON_F_INPUT | HWMON_F_DIV | HWMON_F_TARGET | HWMON_F_ALARM,
HWMON_F_INPUT | HWMON_F_DIV | HWMON_F_TARGET | HWMON_F_ALARM,