mirror of https://gitee.com/openkylin/linux.git
[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>
This commit is contained in:
parent
425b91c94a
commit
653822b927
|
@ -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:
|
||||
|
|
Loading…
Reference in New Issue