mirror of
https://github.com/torvalds/linux.git
synced 2026-09-25 21:21:09 -04:00
media: i2c: ov5695: Modify the function of async register subdev related devices
This patch adds support for registering a sensor sub-device to the async sub-device framework and parse set up common sensor related devices such as actuator/VCM. [Sakari Ailus: Rewrap commit message] Signed-off-by: Dongchun Zhu <[email protected]> Reviewed-by: Tomasz Figa <[email protected]> Signed-off-by: Sakari Ailus <[email protected]> Signed-off-by: Mauro Carvalho Chehab <[email protected]>
This commit is contained in:
committed by
Mauro Carvalho Chehab
parent
355047f411
commit
623df5d710
@@ -1325,7 +1325,7 @@ static int ov5695_probe(struct i2c_client *client,
|
|||||||
goto err_power_off;
|
goto err_power_off;
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
ret = v4l2_async_register_subdev(sd);
|
ret = v4l2_async_register_subdev_sensor_common(sd);
|
||||||
if (ret) {
|
if (ret) {
|
||||||
dev_err(dev, "v4l2 async register subdev failed\n");
|
dev_err(dev, "v4l2 async register subdev failed\n");
|
||||||
goto err_clean_entity;
|
goto err_clean_entity;
|
||||||
|
|||||||
Reference in New Issue
Block a user