drm/i915/dmc: add is_valid_dmc_id() and use it
authorJani Nikula <jani.nikula@intel.com>
Thu, 2 Feb 2023 12:04:51 +0000 (14:04 +0200)
committerJani Nikula <jani.nikula@intel.com>
Thu, 2 Feb 2023 19:34:18 +0000 (21:34 +0200)
commitda97065e4692247767d2a7f2850d193eb2f65229
tree28316c771b1bf82d68fe94a15220c7a9a9a95f0b
parent3965b8812e173c38b2fd1872dc3e08f436311575
drm/i915/dmc: add is_valid_dmc_id() and use it

Add a name to the dmc id validity check.

Signed-off-by: Jani Nikula <jani.nikula@intel.com>
Reviewed-by: Imre Deak <imre.deak@intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/311213ce328575a95d793a219d4dac7d947086cc.1675339447.git.jani.nikula@intel.com
drivers/gpu/drm/i915/display/intel_dmc.c