summaryrefslogtreecommitdiff
path: root/drivers/gpu/drm/xe/xe_hwmon.c
diff options
context:
space:
mode:
authorJani Nikula <jani.nikula@intel.com>2024-01-17 14:20:42 +0200
committerJani Nikula <jani.nikula@intel.com>2024-01-19 14:35:41 +0200
commit3cacf808c9d8e302ff7cd94579a5d3c540232f9e (patch)
treeab04659bdd74aa7fb15b322b9ffe0d436b4faad3 /drivers/gpu/drm/xe/xe_hwmon.c
parentc96baaa8399389312ba6b542e18cbff9c60e3001 (diff)
downloadlwn-3cacf808c9d8e302ff7cd94579a5d3c540232f9e.tar.gz
lwn-3cacf808c9d8e302ff7cd94579a5d3c540232f9e.zip
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 <thomas.hellstrom@linux.intel.com> Link: https://patchwork.freedesktop.org/patch/msgid/20240117122044.1544174-3-jani.nikula@intel.com Signed-off-by: Jani Nikula <jani.nikula@intel.com>
Diffstat (limited to 'drivers/gpu/drm/xe/xe_hwmon.c')
-rw-r--r--drivers/gpu/drm/xe/xe_hwmon.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/gpu/drm/xe/xe_hwmon.c b/drivers/gpu/drm/xe/xe_hwmon.c
index 174ed2185481..89c6f7f84b5a 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),