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

hwmon: ltc2947: 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
53dc67eb bf36b752

+1 -1
+1 -1
drivers/hwmon/ltc2947-core.c
··· 901 901 } 902 902 } 903 903 904 - static const struct hwmon_channel_info *ltc2947_info[] = { 904 + static const struct hwmon_channel_info * const ltc2947_info[] = { 905 905 HWMON_CHANNEL_INFO(in, 906 906 HWMON_I_INPUT | HWMON_I_LOWEST | HWMON_I_HIGHEST | 907 907 HWMON_I_MAX | HWMON_I_MIN | HWMON_I_RESET_HISTORY |