[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-Id: <20211216092652.33414-1-wangxiang@cdjrlc.com>
Date: Thu, 16 Dec 2021 17:26:52 +0800
From: Xiang wangx <wangxiang@...rlc.com>
To: jyri.sarha@....fi
Cc: tomba@...nel.org, airlied@...ux.ie, daniel@...ll.ch,
dri-devel@...ts.freedesktop.org, linux-kernel@...r.kernel.org,
Xiang wangx <wangxiang@...rlc.com>
Subject: [PATCH v2] drm/tilcdc: add const to of_device_id
struct of_device_id should normally be const.
Signed-off-by: Xiang wangx <wangxiang@...rlc.com>
---
Changes since v1
* add const in line 63
drivers/gpu/drm/tilcdc/tilcdc_drv.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/drivers/gpu/drm/tilcdc/tilcdc_drv.c b/drivers/gpu/drm/tilcdc/tilcdc_drv.c
index 3ddb7c710a3d..7c36ecd82ebc 100644
--- a/drivers/gpu/drm/tilcdc/tilcdc_drv.c
+++ b/drivers/gpu/drm/tilcdc/tilcdc_drv.c
@@ -60,7 +60,7 @@ void tilcdc_module_cleanup(struct tilcdc_module *mod)
list_del(&mod->list);
}
-static struct of_device_id tilcdc_of_match[];
+static const struct of_device_id tilcdc_of_match[];
static int tilcdc_atomic_check(struct drm_device *dev,
struct drm_atomic_state *state)
@@ -587,7 +587,7 @@ static int tilcdc_pdev_remove(struct platform_device *pdev)
return 0;
}
-static struct of_device_id tilcdc_of_match[] = {
+static const struct of_device_id tilcdc_of_match[] = {
{ .compatible = "ti,am33xx-tilcdc", },
{ .compatible = "ti,da850-tilcdc", },
{ },
--
2.34.1
Powered by blists - more mailing lists