Commit 79802863 authored by Krzysztof Kozlowski's avatar Krzysztof Kozlowski Committed by Karol Herbst
Browse files

drm/nouveau: constify pointers to hwmon_channel_info



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

Reviewed-by: default avatarLyude Paul <lyude@redhat.com>
Signed-off-by: default avatarKrzysztof Kozlowski <krzysztof.kozlowski@linaro.org>
Signed-off-by: default avatarKarol Herbst <kherbst@redhat.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20230511175443.281970-1-krzysztof.kozlowski@linaro.org
parent 504e72ed
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -211,7 +211,7 @@ static const struct attribute_group temp1_auto_point_sensor_group = {

#define N_ATTR_GROUPS   3

static const struct hwmon_channel_info *nouveau_info[] = {
static const struct hwmon_channel_info * const nouveau_info[] = {
	HWMON_CHANNEL_INFO(chip,
			   HWMON_C_UPDATE_INTERVAL),
	HWMON_CHANNEL_INFO(temp,