summaryrefslogtreecommitdiff
path: root/tools
diff options
context:
space:
mode:
authorVille Syrjälä <ville.syrjala@linux.intel.com>2023-11-27 17:50:28 +0300
committerVille Syrjälä <ville.syrjala@linux.intel.com>2023-11-29 18:06:36 +0300
commit8dfce5f3095b79236b585bfa0e291b77ba4b6dbd (patch)
tree450e48ee6c28b2712fd84f62c199b22335f36a94 /tools
parent9c058492b16f90bb772cb0dad567e8acc68e155d (diff)
downloadlinux-8dfce5f3095b79236b585bfa0e291b77ba4b6dbd.tar.xz
drm/i915: Clean up some DISPLAY_VER checks
Use the >= and < operators for the DISPLAY_VER checks everywhere. This is what most of the code does, but especially recently random pieces of code have started doing this differently for no good reason. Conversion done with the following cocci: @find@ expression i915; constant ver; @@ ( DISPLAY_VER(i915) <= ver | DISPLAY_VER(i915) > ver ) @script:python inc@ old_ver << find.ver; new_ver; @@ coccinelle.new_ver = str(int(old_ver) + 1) @@ expression find.i915; constant find.ver; identifier inc.new_ver; @@ ( - DISPLAY_VER(i915) <= ver + DISPLAY_VER(i915) < new_ver | - DISPLAY_VER(i915) > ver + DISPLAY_VER(i915) >= new_ver ) Signed-off-by: Ville Syrjälä <ville.syrjala@linux.intel.com> Link: https://patchwork.freedesktop.org/patch/msgid/20231127145028.4899-4-ville.syrjala@linux.intel.com Reviewed-by: Jani Nikula <jani.nikula@intel.com>
Diffstat (limited to 'tools')
0 files changed, 0 insertions, 0 deletions