Skip to content

Commit 7980286

Browse files
krzkkarolherbst
authored andcommitted
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: Lyude Paul <lyude@redhat.com> Signed-off-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org> Signed-off-by: Karol Herbst <kherbst@redhat.com> Link: https://patchwork.freedesktop.org/patch/msgid/20230511175443.281970-1-krzysztof.kozlowski@linaro.org
1 parent 504e72e commit 7980286

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

drivers/gpu/drm/nouveau/nouveau_hwmon.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -211,7 +211,7 @@ static const struct attribute_group temp1_auto_point_sensor_group = {
211211

212212
#define N_ATTR_GROUPS 3
213213

214-
static const struct hwmon_channel_info *nouveau_info[] = {
214+
static const struct hwmon_channel_info * const nouveau_info[] = {
215215
HWMON_CHANNEL_INFO(chip,
216216
HWMON_C_UPDATE_INTERVAL),
217217
HWMON_CHANNEL_INFO(temp,

0 commit comments

Comments
 (0)