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

hwmon: lan966x: 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
2d901181 55f44663

+1 -1
+1 -1
drivers/hwmon/lan966x-hwmon.c
··· 260 260 return mode; 261 261 } 262 262 263 - static const struct hwmon_channel_info *lan966x_hwmon_info[] = { 263 + static const struct hwmon_channel_info * const lan966x_hwmon_info[] = { 264 264 HWMON_CHANNEL_INFO(chip, HWMON_C_REGISTER_TZ), 265 265 HWMON_CHANNEL_INFO(temp, HWMON_T_INPUT), 266 266 HWMON_CHANNEL_INFO(fan, HWMON_F_INPUT),