]> git.baikalelectronics.ru Git - kernel.git/commit
drm/i915: Handle cdclk crawling flag in standard manner
authorMatt Roper <matthew.d.roper@intel.com>
Wed, 7 Jul 2021 23:42:06 +0000 (16:42 -0700)
committerMatt Roper <matthew.d.roper@intel.com>
Thu, 8 Jul 2021 14:42:57 +0000 (07:42 -0700)
commiteafaa3e962999091252e6ad667d5da69fce1fdb3
treeb04fadb69d04ddc846f8e6279f0a068e646f2091
parentd372ba42431059e8a35f94353cce40fada02acc2
drm/i915: Handle cdclk crawling flag in standard manner

The 'has_cdclk_crawl' field in our device info structure is a boolean
flag and doesn't need a whole u8.  Add it as another 1-bit feature flag
and move it to the display section.  While we're at it, replace the
has_cdclk_crawl() function with a macro for consistency with our
handling of other feature flags.

Cc: Stanislav Lisovskiy <stanislav.lisovskiy@intel.com>
Signed-off-by: Matt Roper <matthew.d.roper@intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20210707234206.2002849-1-matthew.d.roper@intel.com
Reviewed-by: Jani Nikula <jani.nikula@intel.com>
drivers/gpu/drm/i915/display/intel_cdclk.c
drivers/gpu/drm/i915/i915_drv.h
drivers/gpu/drm/i915/i915_pci.c
drivers/gpu/drm/i915/intel_device_info.h