diff options
author | Jani Nikula <jani.nikula@intel.com> | 2023-02-02 13:04:48 +0100 |
---|---|---|
committer | Jani Nikula <jani.nikula@intel.com> | 2023-02-02 20:33:59 +0100 |
commit | e4ef6503bd4c4ee6fbed2623c50a338dc93d5e9e (patch) | |
tree | 737e6bdd931783296b217204713c91e7754e6631 /drivers/gpu/drm/i915/display/intel_dmc.h | |
parent | drm/i915: Expose SAGV state via debugfs (diff) | |
download | linux-e4ef6503bd4c4ee6fbed2623c50a338dc93d5e9e.tar.xz linux-e4ef6503bd4c4ee6fbed2623c50a338dc93d5e9e.zip |
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
Diffstat (limited to 'drivers/gpu/drm/i915/display/intel_dmc.h')
-rw-r--r-- | drivers/gpu/drm/i915/display/intel_dmc.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/gpu/drm/i915/display/intel_dmc.h b/drivers/gpu/drm/i915/display/intel_dmc.h index fd1725de4289..88eae74dbcf2 100644 --- a/drivers/gpu/drm/i915/display/intel_dmc.h +++ b/drivers/gpu/drm/i915/display/intel_dmc.h @@ -15,7 +15,7 @@ struct drm_i915_private; enum pipe; -enum { +enum intel_dmc_id { DMC_FW_MAIN = 0, DMC_FW_PIPEA, DMC_FW_PIPEB, |