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)
commit29a051bd468cba31c227af579a7c57f250570cfa
tree4d7c14334222b961713903d1e8465857064ab7b9
parent5d53f4c22d367b214f6f737db5cbe6f4a86db747
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