]> git.baikalelectronics.ru Git - kernel.git/commit
drm/i915: Invert if/else ladder for frequency read
authorLucas De Marchi <lucas.demarchi@intel.com>
Tue, 13 Sep 2022 21:09:56 +0000 (14:09 -0700)
committerLucas De Marchi <lucas.demarchi@intel.com>
Thu, 15 Sep 2022 00:32:39 +0000 (17:32 -0700)
commit7d6cb6025da2cad436906c6c41e514ae43cd9b03
tree4d7c14334222b961713903d1e8465857064ab7b9
parent579c9908f9ba0902b044452cb0635a4f02aeb87f
drm/i915: Invert if/else ladder for frequency read

Continue converting the driver to the convention of last version first,
extending it to the future platforms. Now, any GRAPHICS_VER >= 11 will
be handled by the first branch.

With the new ranges it's easier to see what platform a branch started to
be taken. Besides the >= 11 change, the branch taken for GRAPHICS_VER == 10
is also different, but currently there is no such platform in i915.

Signed-off-by: Lucas De Marchi <lucas.demarchi@intel.com>
Reviewed-by: Matt Roper <matthew.d.roper@intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20220908-if-ladder-v2-1-7a7b15545c93@intel.com
drivers/gpu/drm/i915/gt/intel_gt_clock_utils.c