From: Krzysztof Kozlowski Date: Thu, 6 Apr 2023 20:38:19 +0000 (+0200) Subject: hwmon: sl28cpld: constify pointers to hwmon_channel_info X-Git-Tag: v6.6.7~3018^2~42 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=7f46e9883f530068473f2adae93d3cf4a2f8b92e;p=platform%2Fkernel%2Flinux-starfive.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 9ce4899..e020f25 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 };