]> git.proxmox.com Git - mirror_ubuntu-kernels.git/commit
drm/i915/dmc: Add intel_dmc_has_payload() helper
authorAnusha Srivatsa <anusha.srivatsa@intel.com>
Wed, 26 May 2021 22:02:55 +0000 (15:02 -0700)
committerLucas De Marchi <lucas.demarchi@intel.com>
Thu, 3 Jun 2021 06:19:04 +0000 (23:19 -0700)
commit03256487fee340380afecfba0d3ed2dc9ad57612
tree9f9b16ffc969921cf8ef84dcecd1c4a2fe6db0fd
parentec7dfdfce1a09e8d8fc07fbf6ccc32ce0a39c1f8
drm/i915/dmc: Add intel_dmc_has_payload() helper

We check for dmc_payload being there at various points in the driver.
Replace it with the helper.

v2: rebased.
v3: Move intel_dmc to intel_dmc.h in another patch (Lucas)
v4: Remove headers not needed from intel_dmc.h

Cc: Lucas De Marchi <lucas.demarchi@intel.com>
Signed-off-by: Anusha Srivatsa <anusha.srivatsa@intel.com>
Reviewed-by: Lucas De Marchi <lucas.demarchi@intel.com>
Signed-off-by: Lucas De Marchi <lucas.demarchi@intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20210526220256.4097-3-anusha.srivatsa@intel.com
drivers/gpu/drm/i915/display/intel_display_debugfs.c
drivers/gpu/drm/i915/display/intel_display_power.c
drivers/gpu/drm/i915/display/intel_dmc.c
drivers/gpu/drm/i915/display/intel_dmc.h
drivers/gpu/drm/i915/i915_gpu_error.c