media: i2c: ov5647: Use v4l2_async_register_subdev_sensor for lens binding

v4l2_async_register_subdev doesn't bind in lens or flash drivers,
but v4l2_async_register_subdev_sensor does.
Switch to using v4l2_async_register_subdev_sensor.

Signed-off-by: Dave Stevenson <dave.stevenson@raspberrypi.com>
Reviewed-by: Jacopo Mondi <jacopo.mondi@ideasonboard.com>
Signed-off-by: Jai Luthra <jai.luthra@ideasonboard.com>
Signed-off-by: Sakari Ailus <sakari.ailus@linux.intel.com>
Signed-off-by: Hans Verkuil <hverkuil+cisco@kernel.org>
This commit is contained in:
Dave Stevenson 2025-12-22 13:45:35 +05:30 committed by Hans Verkuil
parent ebde37e5ef
commit b9ca9ef3f0

View File

@ -1554,7 +1554,7 @@ static int ov5647_probe(struct i2c_client *client)
if (ret < 0)
goto power_off;
ret = v4l2_async_register_subdev(sd);
ret = v4l2_async_register_subdev_sensor(sd);
if (ret < 0)
goto power_off;