]> git.ipfire.org Git - thirdparty/linux.git/commit
drm/etnaviv: Turn etnaviv_is_model_rev() into a function
authorPhilipp Zabel <p.zabel@pengutronix.de>
Thu, 25 Jan 2024 11:07:07 +0000 (12:07 +0100)
committerLucas Stach <l.stach@pengutronix.de>
Thu, 16 May 2024 17:07:14 +0000 (19:07 +0200)
commit37d5927a856602c50fbbc3211e44dae2496fc816
treed2c048578ecc28cf365e01d4134287cb4ab24b10
parent608ff8e90b6ee4a9f2ef1c157ecf0e72d0a6e7fd
drm/etnaviv: Turn etnaviv_is_model_rev() into a function

Turn the etnaviv_is_model_rev() macro into a static inline function.
Use the raw model number as a parameter instead of the chipModel_GCxxxx
defines. This reduces synchronization requirements for the generated
headers. For newer hardware, the GCxxxx names are not the correct model
names anyway. For example, model 0x8000 NPUs are called VIPNano-QI/SI(+)
by VeriSilicon.

Signed-off-by: Philipp Zabel <p.zabel@pengutronix.de>
Signed-off-by: Lucas Stach <l.stach@pengutronix.de>
drivers/gpu/drm/etnaviv/etnaviv_gpu.c