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
This commit is contained in:
parent
504e72ed3a
commit
79802863a0
@ -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,
|
||||
|
Loading…
x
Reference in New Issue
Block a user