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

hwmon: adt7x10: 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
d7bb04c3 ce94ff2e

+1 -1
+1 -1
drivers/hwmon/adt7x10.c
··· 309 309 } 310 310 } 311 311 312 - static const struct hwmon_channel_info *adt7x10_info[] = { 312 + static const struct hwmon_channel_info * const adt7x10_info[] = { 313 313 HWMON_CHANNEL_INFO(temp, HWMON_T_INPUT | HWMON_T_MAX | HWMON_T_MIN | 314 314 HWMON_T_CRIT | HWMON_T_MAX_HYST | HWMON_T_MIN_HYST | 315 315 HWMON_T_CRIT_HYST | HWMON_T_MIN_ALARM |