Skip to content

Commit

Permalink
[media] adp1653: set media entity type
Browse files Browse the repository at this point in the history
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 <[email protected]>
Signed-off-by: Sakari Ailus <[email protected]>
Signed-off-by: Mauro Carvalho Chehab <[email protected]>
  • Loading branch information
andy-shev authored and Mauro Carvalho Chehab committed Sep 22, 2011
1 parent 425b91c commit 653822b
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions drivers/media/video/adp1653.c
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down

0 comments on commit 653822b

Please sign in to comment.