From: Krzysztof Kozlowski Date: Fri, 7 Apr 2023 15:01:21 +0000 (+0200) Subject: w1: therm: constify pointers to hwmon_channel_info X-Git-Url: http://git.maquefel.me/?a=commitdiff_plain;h=0df2a5e99d0cb10a3da93fd71dd6753af5adc79f;p=linux.git 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 --- diff --git a/drivers/w1/slaves/w1_therm.c b/drivers/w1/slaves/w1_therm.c index ab7a411578f8f..c85e80c7e1307 100644 --- a/drivers/w1/slaves/w1_therm.c +++ b/drivers/w1/slaves/w1_therm.c @@ -454,7 +454,7 @@ static const struct hwmon_channel_info w1_temp = { .config = w1_temp_config, }; -static const struct hwmon_channel_info *w1_info[] = { +static const struct hwmon_channel_info * const w1_info[] = { &w1_temp, NULL };