mbox series

[0/2] Improve type-safety on POWER_DOMAIN_*() macros

Message ID 20250212132658.323640-1-gustavo.sousa@intel.com (mailing list archive)
Headers show
Series Improve type-safety on POWER_DOMAIN_*() macros | expand

Message

Gustavo Sousa Feb. 12, 2025, 1:26 p.m. UTC
Fix one issue[1] reported by the kernel test robot and also take this
opportunity to improve POWER_DOMAIN_*() macros by making them explicitly
return the expected enum type.

[1] https://lore.kernel.org/oe-kbuild-all/202502120809.XfmcqkBD-lkp@intel.com/

Gustavo Sousa (2):
  drm/i915/display: Use explicit cast in POWER_DOMAIN_*() macros
  drm/i915/display: Make POWER_DOMAIN_*() always result in enum
    intel_display_power_domain

 drivers/gpu/drm/i915/display/intel_display_power.h | 7 ++++---
 1 file changed, 4 insertions(+), 3 deletions(-)