From: Jani Nikula Date: Wed, 17 Jan 2024 12:20:42 +0000 (+0200) Subject: drm/xe: make hwmon_info const X-Git-Url: http://git.maquefel.me/?a=commitdiff_plain;h=3cacf808c9d8e302ff7cd94579a5d3c540232f9e;p=linux.git drm/xe: make hwmon_info const Make hwmon_info a const array of const pointers, and let it be placed in rodata. Reviewed-by: Thomas Hellström Link: https://patchwork.freedesktop.org/patch/msgid/20240117122044.1544174-3-jani.nikula@intel.com Signed-off-by: Jani Nikula --- diff --git a/drivers/gpu/drm/xe/xe_hwmon.c b/drivers/gpu/drm/xe/xe_hwmon.c index 174ed2185481e..89c6f7f84b5a5 100644 --- a/drivers/gpu/drm/xe/xe_hwmon.c +++ b/drivers/gpu/drm/xe/xe_hwmon.c @@ -402,7 +402,7 @@ static const struct attribute_group *hwmon_groups[] = { NULL }; -static const struct hwmon_channel_info *hwmon_info[] = { +static const struct hwmon_channel_info * const hwmon_info[] = { HWMON_CHANNEL_INFO(power, HWMON_P_MAX | HWMON_P_RATED_MAX | HWMON_P_CRIT), HWMON_CHANNEL_INFO(curr, HWMON_C_CRIT), HWMON_CHANNEL_INFO(in, HWMON_I_INPUT),