Skip to content

Commit 653822b

Browse files
andy-shevMauro Carvalho Chehab
authored andcommitted
[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>
1 parent 425b91c commit 653822b

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

‎drivers/media/video/adp1653.c‎

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -438,6 +438,8 @@ static int adp1653_probe(struct i2c_client *client,
438438
if (ret < 0)
439439
goto free_and_quit;
440440

441+
flash->subdev.entity.type = MEDIA_ENT_T_V4L2_SUBDEV_FLASH;
442+
441443
return 0;
442444

443445
free_and_quit:

0 commit comments

Comments
 (0)