From: Krzysztof Kozlowski Date: Thu, 6 Apr 2023 20:30:34 +0000 (+0200) Subject: hwmon: max6620: constify pointers to hwmon_channel_info X-Git-Tag: v6.6.7~3018^2~60 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=b3fcd02c608184e1ab42710d4bc58b4c15fbf873;p=platform%2Fkernel%2Flinux-starfive.git 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 Signed-off-by: Guenter Roeck --- diff --git a/drivers/hwmon/max6620.c b/drivers/hwmon/max6620.c index 202b643..0f277d9 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,