OSDN Git Service

drm/i915/dmc: add proper name to dmc id enum and use it
authorJani Nikula <jani.nikula@intel.com>
Thu, 2 Feb 2023 12:04:48 +0000 (14:04 +0200)
committerJani Nikula <jani.nikula@intel.com>
Thu, 2 Feb 2023 19:33:59 +0000 (21:33 +0200)
commite4ef6503bd4c4ee6fbed2623c50a338dc93d5e9e
tree737e6bdd931783296b217204713c91e7754e6631
parent14f25bd0bb938af7359433db4ef9495aad4cf703
drm/i915/dmc: add proper name to dmc id enum and use it

Clarify DMC ID usage by adding enum intel_dmc_id name to the enum, and
use dmc_id as the variable name for it throughout.

Convert a switch-case to if-ladder to avoid warnings about not handling
DMC_FW_MAX enumeration constant in the switch-case.

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