Lucas De Marchi 651e7d4857 drm/i915: replace IS_GEN and friends with GRAPHICS_VER
This was done by the following semantic patch:

	@@ expression i915; @@
	- INTEL_GEN(i915)
	+ GRAPHICS_VER(i915)

	@@ expression i915; expression E; @@
	- INTEL_GEN(i915) >= E
	+ GRAPHICS_VER(i915) >= E

	@@ expression dev_priv; expression E; @@
	- !IS_GEN(dev_priv, E)
	+ GRAPHICS_VER(dev_priv) != E

	@@ expression dev_priv; expression E; @@
	- IS_GEN(dev_priv, E)
	+ GRAPHICS_VER(dev_priv) == E

	@@
	expression dev_priv;
	expression from, until;
	@@
	- IS_GEN_RANGE(dev_priv, from, until)
	+ IS_GRAPHICS_VER(dev_priv, from, until)

	@def@
	expression E;
	identifier id =~ "^gen$";
	@@
	- id = GRAPHICS_VER(E)
	+ ver = GRAPHICS_VER(E)

	@@
	identifier def.id;
	@@
	- id
	+ ver

It also takes care of renaming the variable we assign to GRAPHICS_VER()
so to use "ver" rather than "gen".

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/20210606045050.103862-2-lucas.demarchi@intel.com
2021-06-07 00:59:48 -07:00
..
2021-05-06 11:43:46 +02:00
2021-04-13 23:15:09 +02:00
2021-04-27 13:13:19 +02:00
2020-08-06 14:27:31 -07:00
2021-05-12 11:31:28 +02:00
2021-04-28 10:01:40 -07:00
2021-04-08 12:42:14 +10:00
2021-05-19 09:22:56 +10:00
2021-04-13 23:15:09 +02:00
2021-03-16 17:08:46 +10:00
2021-05-12 12:37:47 +02:00
2021-04-13 23:15:09 +02:00
2021-05-04 16:10:10 +02:00
2021-03-16 17:08:46 +10:00
2021-05-19 09:22:56 +10:00
2021-04-29 18:53:05 -03:00
2021-04-13 23:15:09 +02:00
2021-05-10 15:46:54 +02:00
2021-01-04 12:59:33 +01:00
2020-09-21 10:45:08 +02:00
2021-01-07 13:40:20 +01:00
2020-08-11 11:58:31 +10:00
2021-03-18 14:22:50 +01:00