From: Krzysztof Kozlowski Date: Thu, 6 Apr 2023 20:29:57 +0000 (+0200) Subject: hwmon: adm1177: constify pointers to hwmon_channel_info X-Git-Url: http://git.maquefel.me/?a=commitdiff_plain;h=63bde65918e60c679e58dcc382b19cf24cc3f07a;p=linux.git hwmon: adm1177: 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/adm1177.c b/drivers/hwmon/adm1177.c index be17a26a84f19..bfe070a1b501c 100644 --- a/drivers/hwmon/adm1177.c +++ b/drivers/hwmon/adm1177.c @@ -168,7 +168,7 @@ static umode_t adm1177_is_visible(const void *data, return 0; } -static const struct hwmon_channel_info *adm1177_info[] = { +static const struct hwmon_channel_info * const adm1177_info[] = { HWMON_CHANNEL_INFO(curr, HWMON_C_INPUT | HWMON_C_MAX_ALARM), HWMON_CHANNEL_INFO(in,