diff options
author | Lad, Prabhakar <prabhakar.csengg@gmail.com> | 2013-06-22 05:46:35 -0300 |
---|---|---|
committer | Mauro Carvalho Chehab <m.chehab@samsung.com> | 2013-07-26 12:59:18 -0300 |
commit | 0fb0f8f5ed9ff1419cd59834e4d1e95d19fb2eef (patch) | |
tree | b31d797c120db218e6bb54eed9f02a3397da7244 /drivers/media/i2c/ths8200.c | |
parent | ed29f894970065402e988088a19698f252b80144 (diff) | |
download | blackbird-obmc-linux-0fb0f8f5ed9ff1419cd59834e4d1e95d19fb2eef.tar.gz blackbird-obmc-linux-0fb0f8f5ed9ff1419cd59834e4d1e95d19fb2eef.zip |
[media] media: i2c: ths8200: add OF support
add OF support for the ths8200 driver.
Signed-off-by: Lad, Prabhakar <prabhakar.csengg@gmail.com>
Signed-off-by: Hans Verkuil <hans.verkuil@cisco.com>
Signed-off-by: Mauro Carvalho Chehab <m.chehab@samsung.com>
Diffstat (limited to 'drivers/media/i2c/ths8200.c')
-rw-r--r-- | drivers/media/i2c/ths8200.c | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/drivers/media/i2c/ths8200.c b/drivers/media/i2c/ths8200.c index cc1339a97463..8a29810d155a 100644 --- a/drivers/media/i2c/ths8200.c +++ b/drivers/media/i2c/ths8200.c @@ -550,10 +550,19 @@ static struct i2c_device_id ths8200_id[] = { }; MODULE_DEVICE_TABLE(i2c, ths8200_id); +#if IS_ENABLED(CONFIG_OF) +static const struct of_device_id ths8200_of_match[] = { + { .compatible = "ti,ths8200", }, + { /* sentinel */ }, +}; +MODULE_DEVICE_TABLE(of, ths8200_of_match); +#endif + static struct i2c_driver ths8200_driver = { .driver = { .owner = THIS_MODULE, .name = "ths8200", + .of_match_table = of_match_ptr(ths8200_of_match), }, .probe = ths8200_probe, .remove = ths8200_remove, |