From: Krzysztof Kozlowski Date: Thu, 6 Apr 2023 20:38:15 +0000 (+0200) Subject: hwmon: sbrmi: constify pointers to hwmon_channel_info X-Git-Url: https://www.infradead.org/git/?a=commitdiff_plain;h=29423978b76912b43ebb9ac6433be0f9dd7bd8fa;p=users%2Fjedix%2Flinux-maple.git hwmon: sbrmi: 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/sbrmi.c b/drivers/hwmon/sbrmi.c index 8ea5a4d3219ff..529f0e766319b 100644 --- a/drivers/hwmon/sbrmi.c +++ b/drivers/hwmon/sbrmi.c @@ -265,7 +265,7 @@ static umode_t sbrmi_is_visible(const void *data, return 0; } -static const struct hwmon_channel_info *sbrmi_info[] = { +static const struct hwmon_channel_info * const sbrmi_info[] = { HWMON_CHANNEL_INFO(power, HWMON_P_INPUT | HWMON_P_CAP | HWMON_P_CAP_MAX), NULL