projects
/
linux.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
c96baaa
)
drm/xe: make hwmon_info const
author
Jani Nikula
<jani.nikula@intel.com>
Wed, 17 Jan 2024 12:20:42 +0000
(14:20 +0200)
committer
Jani Nikula
<jani.nikula@intel.com>
Fri, 19 Jan 2024 12:35:41 +0000
(14:35 +0200)
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>
drivers/gpu/drm/xe/xe_hwmon.c
patch
|
blob
|
history
diff --git
a/drivers/gpu/drm/xe/xe_hwmon.c
b/drivers/gpu/drm/xe/xe_hwmon.c
index 174ed2185481e32d568551e62f1839181a1771d4..89c6f7f84b5a52863d9108021c0e50d19464ad2c 100644
(file)
--- 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),