]> Gentwo Git Trees - linux/.git/commit
drm/tidss: dispc: Switch OVR_REG_FLD_MOD to using a mask
authorMaxime Ripard <mripard@kernel.org>
Wed, 27 Aug 2025 15:12:44 +0000 (17:12 +0200)
committerTomi Valkeinen <tomi.valkeinen@ideasonboard.com>
Mon, 1 Sep 2025 07:37:19 +0000 (10:37 +0300)
commit9b74ce7a691750b04ec7d2d7b08490134681c3eb
tree7e92b3263c4cbe13e984adcd2d42a34c68b8bfdb
parent68f7fa24776e2821896dd95ba0cf1a77a302575f
drm/tidss: dispc: Switch OVR_REG_FLD_MOD to using a mask

The OVR_REG_FLD_MOD function takes the start and end bits as parameter
and will generate a mask out of them.

This makes it difficult to share the masks between callers, since we now
need two arguments and to keep them consistent.

Let's change OVR_REG_FLD_MOD to take the mask as an argument instead,
and let the caller create the mask. Eventually, this mask will be moved
to a define.

Signed-off-by: Maxime Ripard <mripard@kernel.org>
Link: https://lore.kernel.org/r/20250827-drm-tidss-field-api-v3-13-7689b664cc63@kernel.org
Signed-off-by: Tomi Valkeinen <tomi.valkeinen@ideasonboard.com>
drivers/gpu/drm/tidss/tidss_dispc.c