diff options
| author | Lucas De Marchi <[email protected]> | 2021-06-05 08:53:52 -0700 | 
|---|---|---|
| committer | Lucas De Marchi <[email protected]> | 2021-06-05 15:09:06 -0700 | 
| commit | c816723b6b8a627c2edafc8bcc8062017323d031 (patch) | |
| tree | 3ee1acd4d2c043afca2e84e1a9c877f1ad0b356e /drivers/gpu/drm/amd/amdgpu/amdgpu_ucode.h | |
| parent | 84bdf4571d4dc36207bbc4b0fb2711723ee313d4 (diff) | |
drm/i915/gt: 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 <[email protected]>
Reviewed-by: Matt Roper <[email protected]>
Link: https://patchwork.freedesktop.org/patch/msgid/[email protected]
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu/amdgpu_ucode.h')
0 files changed, 0 insertions, 0 deletions