OSDN Git Service

media: i2c: ov5695: Modify the function of async register subdev related devices
authorDongchun Zhu <dongchun.zhu@mediatek.com>
Fri, 27 Sep 2019 07:18:24 +0000 (04:18 -0300)
committerMauro Carvalho Chehab <mchehab+samsung@kernel.org>
Tue, 1 Oct 2019 20:33:21 +0000 (17:33 -0300)
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 <dongchun.zhu@mediatek.com>
Reviewed-by: Tomasz Figa <tfiga@chromium.org>
Signed-off-by: Sakari Ailus <sakari.ailus@linux.intel.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab+samsung@kernel.org>
drivers/media/i2c/ov5695.c

index 34b7046..d6cd15b 100644 (file)
@@ -1325,7 +1325,7 @@ static int ov5695_probe(struct i2c_client *client,
                goto err_power_off;
 #endif
 
-       ret = v4l2_async_register_subdev(sd);
+       ret = v4l2_async_register_subdev_sensor_common(sd);
        if (ret) {
                dev_err(dev, "v4l2 async register subdev failed\n");
                goto err_clean_entity;