drm/i915/dsc: improve clarity of the pps reg read/write helpers
authorJani Nikula <jani.nikula@intel.com>
Tue, 5 Sep 2023 17:11:20 +0000 (20:11 +0300)
committerJani Nikula <jani.nikula@intel.com>
Mon, 11 Sep 2023 15:35:16 +0000 (18:35 +0300)
commitd28c8222824140773e0583dd400de6f08faf3a1c
tree60f083e991b276bb82727a9302b93d17f8ece0fe
parent70052100fabec5d8c1b09c9959817a2f4517e6b5
drm/i915/dsc: improve clarity of the pps reg read/write helpers

Make it clear what's the number of vdsc per pipe, and what's the number
of registers to grab. Have intel_dsc_get_pps_reg() return the registers
it knows even if the requested amount is bigger.

Cc: Suraj Kandpal <suraj.kandpal@intel.com>
Cc: Ankit Nautiyal <ankit.k.nautiyal@intel.com>
Signed-off-by: Jani Nikula <jani.nikula@intel.com>
Reviewed-by: Suraj Kandpal <suraj.kandpal@intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/e2551b52ac0dd2b4ffe18d5e7733fafdc191d68a.1693933849.git.jani.nikula@intel.com
drivers/gpu/drm/i915/display/intel_vdsc.c