Commit 3cacf808 authored by Jani Nikula's avatar Jani Nikula

drm/xe: make hwmon_info const

Make hwmon_info a const array of const pointers, and let it be placed in
rodata.
Reviewed-by: default avatarThomas Hellström <thomas.hellstrom@linux.intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20240117122044.1544174-3-jani.nikula@intel.comSigned-off-by: default avatarJani Nikula <jani.nikula@intel.com>
parent c96baaa8
......@@ -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),
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment