[PATCH] drm/nouveau/nvkm: refine the device SKU enum
Greg KH
gregkh at linuxfoundation.org
Thu Oct 17 11:32:13 UTC 2024
On Thu, Oct 17, 2024 at 04:24:54AM -0700, Zhi Wang wrote:
> NVKM uses a enum called "card_type" to represent the device SKU in the
> code. Within the enum, each device SKU is represent like NV_10, AD100, etc.
>
> Many concerns were raised due to over-short SKU enums can conflicts with
> other local enums and a prefix is also required as an identifier of
> namespace of a driver.
>
> Rename enum "card_type" to "sku". Add the prefix NVKM_DEVICE_ before each
> device SKU inside the enum and some other coding format tweaks to make
> checkpatch.pl happy.
>
> No functional change is intended.
>
> Signed-off-by: Zhi Wang <zhiw at nvidia.com>
Nice, thanks for doing this.
Acked-by: Greg Kroah-Hartman <gregkh at linuxfoundation.org>
More information about the Nouveau
mailing list