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

hwmon: ntc_thermistor: 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
9add51f2 ed30302c

+1 -1
+1 -1
drivers/hwmon/ntc_thermistor.c
··· 546 546 return 0; 547 547 } 548 548 549 - static const struct hwmon_channel_info *ntc_info[] = { 549 + static const struct hwmon_channel_info * const ntc_info[] = { 550 550 HWMON_CHANNEL_INFO(chip, HWMON_C_REGISTER_TZ), 551 551 HWMON_CHANNEL_INFO(temp, HWMON_T_INPUT | HWMON_T_TYPE), 552 552 NULL