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>
This commit is contained in:
Krzysztof Kozlowski 2023-04-07 17:01:21 +02:00
parent 51cbbcd646
commit 0df2a5e99d
1 changed files with 1 additions and 1 deletions

View File

@ -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
};