Commit 0df2a5e9 authored by Krzysztof Kozlowski's avatar Krzysztof Kozlowski
Browse files

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: default avatarKrzysztof Kozlowski <krzysztof.kozlowski@linaro.org>
parent 51cbbcd6
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -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
};