1
0
Fork 0
mirror of synced 2025-03-06 20:59:54 +01:00
linux/drivers/gpu/drm/nouveau/nvkm/subdev/i2c
Lucas De Marchi b8c75bd974 drm: Convert open-coded yes/no strings to yesno()
linux/string_helpers.h provides a helper to return "yes"/"no" strings.
Replace the open coded versions with str_yes_no(). The places were
identified with the following semantic patch:

	@@
	expression b;
	@@

	- b ? "yes" : "no"
	+ str_yes_no(b)

Then the includes were added, so we include-what-we-use, and parenthesis
adjusted in drivers/gpu/drm/v3d/v3d_debugfs.c. After the conversion we
still see the same binary sizes:

   text    data     bss     dec     hex filename
  51149    3295     212   54656    d580 virtio/virtio-gpu.ko.old
  51149    3295     212   54656    d580 virtio/virtio-gpu.ko
1441491   60340     800 1502631  16eda7 radeon/radeon.ko.old
1441491   60340     800 1502631  16eda7 radeon/radeon.ko
6125369  328538   34000 6487907  62ff63 amd/amdgpu/amdgpu.ko.old
6125369  328538   34000 6487907  62ff63 amd/amdgpu/amdgpu.ko
 411986   10490    6176  428652   68a6c drm.ko.old
 411986   10490    6176  428652   68a6c drm.ko
  98129    1636     264  100029   186bd dp/drm_dp_helper.ko.old
  98129    1636     264  100029   186bd dp/drm_dp_helper.ko
1973432  109640    2352 2085424  1fd230 nouveau/nouveau.ko.old
1973432  109640    2352 2085424  1fd230 nouveau/nouveau.ko

Signed-off-by: Lucas De Marchi <lucas.demarchi@intel.com>
Reviewed-by: Jani Nikula <jani.nikula@intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20220126093951.1470898-10-lucas.demarchi@intel.com
2022-02-07 13:04:25 -08:00
..
anx9805.c drm/nouveau/i2c: modify aux interface to return length actually transferred 2017-03-07 17:05:16 +10:00
aux.c drm: Convert open-coded yes/no strings to yesno() 2022-02-07 13:04:25 -08:00
aux.h drm/nouveau/i2c/gk110-: disable hw-initiated dpcd reads 2021-01-15 10:25:16 +10:00
auxg94.c drm/nouveau/i2c/gk110-: disable hw-initiated dpcd reads 2021-01-15 10:25:16 +10:00
auxgf119.c drm/nouveau/i2c/gf119-: add support for address-only transactions 2017-07-24 12:15:24 +10:00
auxgm200.c drm/nouveau/i2c/gm200: increase width of aux semaphore owner fields 2021-01-15 10:25:16 +10:00
base.c drm/nouveau/i2c: switch to instanced constructor 2021-02-11 11:49:53 +10:00
bit.c drm/nouveau/i2c: transition pad/ports away from being based on nvkm_object 2015-08-28 12:40:29 +10:00
bus.c drm/nouveau/i2c: Disable i2c bus access after ->fini() 2019-05-01 11:08:39 +10:00
bus.h drm/nouveau: fix bogus GPL-2 license header 2019-07-19 16:26:50 +10:00
busgf119.c drm/nouveau/i2c: transition pad/ports away from being based on nvkm_object 2015-08-28 12:40:29 +10:00
busnv04.c drm/nouveau/i2c: transition pad/ports away from being based on nvkm_object 2015-08-28 12:40:29 +10:00
busnv4e.c drm/nouveau/i2c: transition pad/ports away from being based on nvkm_object 2015-08-28 12:40:29 +10:00
busnv50.c drm/nouveau/i2c: transition pad/ports away from being based on nvkm_object 2015-08-28 12:40:29 +10:00
g94.c drm/nouveau/i2c: switch to instanced constructor 2021-02-11 11:49:53 +10:00
gf117.c drm/nouveau/i2c: switch to instanced constructor 2021-02-11 11:49:53 +10:00
gf119.c drm/nouveau/i2c: switch to instanced constructor 2021-02-11 11:49:53 +10:00
gk104.c drm/nouveau/i2c: switch to instanced constructor 2021-02-11 11:49:53 +10:00
gk110.c drm/nouveau/i2c: switch to instanced constructor 2021-02-11 11:49:53 +10:00
gm200.c drm/nouveau/i2c: switch to instanced constructor 2021-02-11 11:49:53 +10:00
Kbuild drm/nouveau/i2c/gk110: split out from i2c/gk104 2021-01-15 10:25:15 +10:00
nv04.c drm/nouveau/i2c: switch to instanced constructor 2021-02-11 11:49:53 +10:00
nv4e.c drm/nouveau/i2c: switch to instanced constructor 2021-02-11 11:49:53 +10:00
nv50.c drm/nouveau/i2c: switch to instanced constructor 2021-02-11 11:49:53 +10:00
pad.c drm/nouveau/i2c: transition pad/ports away from being based on nvkm_object 2015-08-28 12:40:29 +10:00
pad.h drm/nouveau/i2c/gk110-: disable hw-initiated dpcd reads 2021-01-15 10:25:16 +10:00
padg94.c drm/nouveau/i2c: transition pad/ports away from being based on nvkm_object 2015-08-28 12:40:29 +10:00
padgf119.c drm/nouveau/i2c/gf119-: add support for address-only transactions 2017-07-24 12:15:24 +10:00
padgm200.c drm/nouveau: s/gm204/gm200/ in a number of places 2016-03-14 10:13:12 +10:00
padnv04.c drm/nouveau/i2c: transition pad/ports away from being based on nvkm_object 2015-08-28 12:40:29 +10:00
padnv4e.c drm/nouveau/i2c: transition pad/ports away from being based on nvkm_object 2015-08-28 12:40:29 +10:00
padnv50.c drm/nouveau/i2c: transition pad/ports away from being based on nvkm_object 2015-08-28 12:40:29 +10:00
priv.h drm/nouveau/i2c: switch to instanced constructor 2021-02-11 11:49:53 +10:00