drm/tilcdc: add const to of_device_id
Subsystems (3)
PATCH v3 1/1 drm/tilcdc: add const to of_device_id
struct of_device_id should normally be const.
Signed-off-by Xiang wangx <[email protected]>
---
Changes since v1
* add const in line 63
Changes since v2
* removed line 63
drivers/gpu/drm/tilcdc/tilcdc_drv.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-)
drivers/gpu/drm/tilcdc/tilcdc_drv.c +1 -3
@@ -60,8 +60,6 @@ void tilcdc_module_cleanup(struct tilcdc_module *mod)list_del (&mod->list); } -static struct of_device_id tilcdc_of_match[]; -static int tilcdc_atomic_check (struct drm_device *dev,struct drm_atomic_state *state) {
@@ -587,7 +585,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" , }, { },
Signature · 1 line
2.34.1
Quoted 3 lines · Xiang wangx
struct
of_device_idshould normally be const.Signed-off-by Xiang wangx <[email protected]>
Reviewed-by Jyri Sarha <[email protected]>
Thanks,
Jyri
Quoted 35 lines
---
Changes since v1
* add const in line 63Changes since v2
* removed line 63drivers/gpu/drm/tilcdc/tilcdc_drv.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-)drivers/gpu/drm/tilcdc/tilcdc_drv.c +1
-3@@ -60,8 +60,6 @@ void tilcdc_module_cleanup(struct tilcdc_module *mod)list_del (&mod->list); } -static struct of_device_id tilcdc_of_match[]; -static int tilcdc_atomic_check (struct drm_device *dev,struct drm_atomic_state *state) {@@ -587,7 +585,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" , },{ },