]> git.baikalelectronics.ru Git - kernel.git/commit
drm/i915: Move the power domain->well mappings to intel_display_power_map.c
authorImre Deak <imre.deak@intel.com>
Thu, 14 Apr 2022 21:06:42 +0000 (00:06 +0300)
committerImre Deak <imre.deak@intel.com>
Wed, 20 Apr 2022 17:41:57 +0000 (20:41 +0300)
commitbb642c9fc51ee30111052854694534c9d9eeb9c7
treed13fcfb470420bbe1ca43db15dd2cc9d55cf6aec
parent911fb2c7884dde7b83aa877be96d4da17872d944
drm/i915: Move the power domain->well mappings to intel_display_power_map.c

Move the list of platform specific power domain -> power well
definitions to intel_display_power_map.c. While at it group the
platforms' power domain macros with the corresponding power well lists
and keep all the power domain lists in the same order (matching the enum
order).

No functional changes.

v2:
- s/intel_display_power_internal.h/intel_display_power_map.h/ (Jani)
- Simplify intel_cleanup_power_wells().
- Don't move intel_display_power_domain_str().
v3:
- Rename intel_init/cleanup_power_wells() to
  intel_display_power_map_init/cleanup().
- Add documentation to intel_display_power_map_init/cleanup().

Cc: Jani Nikula <jani.nikula@intel.com>
Signed-off-by: Imre Deak <imre.deak@intel.com>
Reviewed-by: Jouni Högander <jouni.hogander@intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20220414210657.1785773-3-imre.deak@intel.com
drivers/gpu/drm/i915/Makefile
drivers/gpu/drm/i915/display/intel_display_power.c
drivers/gpu/drm/i915/display/intel_display_power_map.c [new file with mode: 0644]
drivers/gpu/drm/i915/display/intel_display_power_map.h [new file with mode: 0644]