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

w1: therm: constify pointers to hwmon_channel_info

Statically allocated array of pointed to hwmon_channel_info can be made
const for safety.

Link: https://lore.kernel.org/r/20230407150121.79887-1-krzysztof.kozlowski@linaro.org
Signed-off-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org>

+1 -1
+1 -1
drivers/w1/slaves/w1_therm.c
··· 454 454 .config = w1_temp_config, 455 455 }; 456 456 457 - static const struct hwmon_channel_info *w1_info[] = { 457 + static const struct hwmon_channel_info * const w1_info[] = { 458 458 &w1_temp, 459 459 NULL 460 460 };