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

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.com


Signed-off-by: default avatarJani Nikula <jani.nikula@intel.com>
parent c96baaa8
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -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),