summaryrefslogtreecommitdiffstats
path: root/drivers/media/video/adp1653.c
diff options
context:
space:
mode:
authorAndy Shevchenko2011-08-11 13:35:04 +0200
committerMauro Carvalho Chehab2011-09-22 15:26:46 +0200
commit653822b9276472aa760fa80f32ffcc777de9c403 (patch)
treed44d21cf28354f561c661f8f77fde2ea6a86b90b /drivers/media/video/adp1653.c
parent[media] TVP7002: Changed register values (diff)
downloadkernel-qcow2-linux-653822b9276472aa760fa80f32ffcc777de9c403.tar.gz
kernel-qcow2-linux-653822b9276472aa760fa80f32ffcc777de9c403.tar.xz
kernel-qcow2-linux-653822b9276472aa760fa80f32ffcc777de9c403.zip
[media] adp1653: set media entity type
The type of a media entity is default for this driver. This patch makes it explicitly defined as MEDIA_ENT_T_V4L2_SUBDEV_FLASH. Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com> Signed-off-by: Sakari Ailus <sakari.ailus@iki.fi> Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
Diffstat (limited to 'drivers/media/video/adp1653.c')
-rw-r--r--drivers/media/video/adp1653.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/media/video/adp1653.c b/drivers/media/video/adp1653.c
index 2e874c335c13..5914390211ff 100644
--- a/drivers/media/video/adp1653.c
+++ b/drivers/media/video/adp1653.c
@@ -438,6 +438,8 @@ static int adp1653_probe(struct i2c_client *client,
if (ret < 0)
goto free_and_quit;
+ flash->subdev.entity.type = MEDIA_ENT_T_V4L2_SUBDEV_FLASH;
+
return 0;
free_and_quit: