Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

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 <krzysztof.kozlowski@linaro.org>
Signed-off-by: Guenter Roeck <linux@roeck-us.net>

authored by

Krzysztof Kozlowski and committed by
Guenter Roeck
7f46e988 11c1dff5

+1 -1
+1 -1
drivers/hwmon/sl28cpld-hwmon.c
··· 67 67 return 0; 68 68 } 69 69 70 - static const struct hwmon_channel_info *sl28cpld_hwmon_info[] = { 70 + static const struct hwmon_channel_info * const sl28cpld_hwmon_info[] = { 71 71 HWMON_CHANNEL_INFO(fan, HWMON_F_INPUT), 72 72 NULL 73 73 };