[PATCH] drm/xe: Mark internal gmdid mappings as const
Gustavo Sousa
gustavo.sousa at intel.com
Tue Jan 16 13:15:05 UTC 2024
Quoting Michal Wajdeczko (2024-01-16 09:02:07-03:00)
>The mapping between HW IP version and its description is const, so
>mark it as such.
>
>Signed-off-by: Michal Wajdeczko <michal.wajdeczko at intel.com>
>Cc: Lucas De Marchi <lucas.demarchi at intel.com>
Reviewed-by: Gustavo Sousa <gustavo.sousa at intel.com>
>---
> drivers/gpu/drm/xe/xe_pci.c | 4 ++--
> 1 file changed, 2 insertions(+), 2 deletions(-)
>
>diff --git a/drivers/gpu/drm/xe/xe_pci.c b/drivers/gpu/drm/xe/xe_pci.c
>index 4de79a7c5dc2..df6b3b31f419 100644
>--- a/drivers/gpu/drm/xe/xe_pci.c
>+++ b/drivers/gpu/drm/xe/xe_pci.c
>@@ -340,14 +340,14 @@ static const struct xe_device_desc lnl_desc = {
> __diag_pop();
>
> /* Map of GMD_ID values to graphics IP */
>-static struct gmdid_map graphics_ip_map[] = {
>+static const struct gmdid_map graphics_ip_map[] = {
> { 1270, &graphics_xelpg },
> { 1271, &graphics_xelpg },
> { 2004, &graphics_xe2 },
> };
>
> /* Map of GMD_ID values to media IP */
>-static struct gmdid_map media_ip_map[] = {
>+static const struct gmdid_map media_ip_map[] = {
> { 1300, &media_xelpmp },
> { 2000, &media_xe2 },
> };
>--
>2.25.1
>
More information about the Intel-xe
mailing list