Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

[media] tvp5150: Add OF match table

The Documentation/devicetree/bindings/media/i2c/tvp5150.txt DT binding doc
lists "ti,tvp5150" as the device compatible string but the driver does not
have an OF match table. Add the table to the driver so the I2C core can do
an OF style match.

Signed-off-by: Eduard Gavin <egavinc@gmail.com>
Signed-off-by: Javier Martinez Canillas <javier@osg.samsung.com>
Reviewed-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@osg.samsung.com>

authored by

Eduard Gavin and committed by
Mauro Carvalho Chehab
7ef930a7 a2e5f1b3

+9
+9
drivers/media/i2c/tvp5150.c
··· 1359 1359 }; 1360 1360 MODULE_DEVICE_TABLE(i2c, tvp5150_id); 1361 1361 1362 + #if IS_ENABLED(CONFIG_OF) 1363 + static const struct of_device_id tvp5150_of_match[] = { 1364 + { .compatible = "ti,tvp5150", }, 1365 + { /* sentinel */ }, 1366 + }; 1367 + MODULE_DEVICE_TABLE(of, tvp5150_of_match); 1368 + #endif 1369 + 1362 1370 static struct i2c_driver tvp5150_driver = { 1363 1371 .driver = { 1372 + .of_match_table = of_match_ptr(tvp5150_of_match), 1364 1373 .name = "tvp5150", 1365 1374 }, 1366 1375 .probe = tvp5150_probe,