]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
drm/i915/reg: make masked field helpers constexpr
authorJani Nikula <jani.nikula@intel.com>
Wed, 25 Feb 2026 17:57:03 +0000 (19:57 +0200)
committerJani Nikula <jani.nikula@intel.com>
Wed, 4 Mar 2026 11:04:20 +0000 (13:04 +0200)
commitb6d558af2d6362f9fed704302071bc765f395e0d
treecc1689bd2331e18122808fbe79256adf0b584d2d
parentf5c8f824a495e849492f09a43bd965a8f4d86cb2
drm/i915/reg: make masked field helpers constexpr

Make it possible to use _MASKED_FIELD(), _MASKED_BIT_ENABLE() and
_MASKED_BIT_DISABLE() in contexts that require integer constant
expressions. This increases their usefulness at the small cost of making
the warnings from build time checks less helpful.

Reviewed-by: MichaƂ Grzelak <michal.grzelak@intel.com>
Acked-by: Rodrigo Vivi <rodrigo.vivi@intel.com>
Link: https://patch.msgid.link/788f538cc71dec0db25e0c768e8945bef6f9701c.1772042022.git.jani.nikula@intel.com
Signed-off-by: Jani Nikula <jani.nikula@intel.com>
drivers/gpu/drm/i915/i915_reg_defs.h