From: Krzysztof Kozlowski Date: Thu, 6 Apr 2023 20:38:19 +0000 (+0200) Subject: hwmon: sl28cpld: constify pointers to hwmon_channel_info X-Git-Url: http://git.maquefel.me/?a=commitdiff_plain;h=7f46e9883f530068473f2adae93d3cf4a2f8b92e;p=linux.git hwmon: sl28cpld: 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/sl28cpld-hwmon.c b/drivers/hwmon/sl28cpld-hwmon.c index 9ce4899a81a55..e020f25c93005 100644 --- a/drivers/hwmon/sl28cpld-hwmon.c +++ b/drivers/hwmon/sl28cpld-hwmon.c @@ -67,7 +67,7 @@ static int sl28cpld_hwmon_read(struct device *dev, return 0; } -static const struct hwmon_channel_info *sl28cpld_hwmon_info[] = { +static const struct hwmon_channel_info * const sl28cpld_hwmon_info[] = { HWMON_CHANNEL_INFO(fan, HWMON_F_INPUT), NULL };