mirror of
https://github.com/torvalds/linux.git
synced 2026-05-27 16:44:58 +02:00
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>
This commit is contained in:
parent
c96baaa839
commit
3cacf808c9
|
|
@ -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),
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user