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

hwmon: lm75: 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
3ee2ceca 2d901181

+1 -1
+1 -1
drivers/hwmon/lm75.c
··· 512 512 return 0; 513 513 } 514 514 515 - static const struct hwmon_channel_info *lm75_info[] = { 515 + static const struct hwmon_channel_info * const lm75_info[] = { 516 516 HWMON_CHANNEL_INFO(chip, 517 517 HWMON_C_REGISTER_TZ | HWMON_C_UPDATE_INTERVAL), 518 518 HWMON_CHANNEL_INFO(temp,