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

hwmon: lm95245: 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
043f90c8 1d0cfeb2

+1 -1
+1 -1
drivers/hwmon/lm95245.c
··· 523 523 .use_single_write = true, 524 524 }; 525 525 526 - static const struct hwmon_channel_info *lm95245_info[] = { 526 + static const struct hwmon_channel_info * const lm95245_info[] = { 527 527 HWMON_CHANNEL_INFO(chip, 528 528 HWMON_C_UPDATE_INTERVAL), 529 529 HWMON_CHANNEL_INFO(temp,