mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-08-24 17:59:32 +00:00
[media] coda/imx-vdoa: constify structs
As warned by checkpatch: WARNING: struct of_device_id should normally be const #318: FILE: drivers/media/platform/coda/imx-vdoa.c:318: +static struct of_device_id vdoa_dt_ids[] = { So, constify structs. Signed-off-by: Mauro Carvalho Chehab <mchehab@s-opensource.com>
This commit is contained in:
parent
b0444f18e0
commit
126f52b02e
1 changed files with 2 additions and 2 deletions
|
@ -315,13 +315,13 @@ static int vdoa_remove(struct platform_device *pdev)
|
|||
return 0;
|
||||
}
|
||||
|
||||
static struct of_device_id vdoa_dt_ids[] = {
|
||||
static const struct of_device_id vdoa_dt_ids[] = {
|
||||
{ .compatible = "fsl,imx6q-vdoa" },
|
||||
{}
|
||||
};
|
||||
MODULE_DEVICE_TABLE(of, vdoa_dt_ids);
|
||||
|
||||
static struct platform_driver vdoa_driver = {
|
||||
static const struct platform_driver vdoa_driver = {
|
||||
.probe = vdoa_probe,
|
||||
.remove = vdoa_remove,
|
||||
.driver = {
|
||||
|
|
Loading…
Reference in a new issue