media: v4l: fwnode: Rename v4l2_async_register_subdev_sensor_common
Rename v4l2_async_register_subdev_sensor_common as v4l2_async_register_subdev_sensor. This is a part of the effort to make the long names present in V4L2 fwnode and async frameworks shorter. Signed-off-by: Sakari Ailus <sakari.ailus@linux.intel.com> Reviewed-by: Ezequiel Garcia <ezequiel@collabora.com> Signed-off-by: Mauro Carvalho Chehab <mchehab+huawei@kernel.org>
This commit is contained in:
parent
9e7fabbcb0
commit
15786f7b56
|
@ -208,7 +208,7 @@ the needs of the driver.
|
|||
:c:func:`v4l2_async_notifier_add_i2c_subdev` are for bridge and ISP drivers for
|
||||
registering their async sub-devices with the notifier.
|
||||
|
||||
:c:func:`v4l2_async_register_subdev_sensor_common` is a helper function for
|
||||
:c:func:`v4l2_async_register_subdev_sensor` is a helper function for
|
||||
sensor drivers registering their own async sub-device, but it also registers a
|
||||
notifier and further registers async sub-devices for lens and flash devices
|
||||
found in firmware. The notifier for the sub-device is unregistered with the
|
||||
|
|
|
@ -3572,7 +3572,7 @@ static int ccs_probe(struct i2c_client *client)
|
|||
pm_runtime_get_noresume(&client->dev);
|
||||
pm_runtime_enable(&client->dev);
|
||||
|
||||
rval = v4l2_async_register_subdev_sensor_common(&sensor->src->sd);
|
||||
rval = v4l2_async_register_subdev_sensor(&sensor->src->sd);
|
||||
if (rval < 0)
|
||||
goto out_disable_runtime_pm;
|
||||
|
||||
|
|
|
@ -1443,7 +1443,7 @@ static int et8ek8_probe(struct i2c_client *client)
|
|||
goto err_mutex;
|
||||
}
|
||||
|
||||
ret = v4l2_async_register_subdev_sensor_common(&sensor->subdev);
|
||||
ret = v4l2_async_register_subdev_sensor(&sensor->subdev);
|
||||
if (ret < 0)
|
||||
goto err_entity;
|
||||
|
||||
|
|
|
@ -1145,7 +1145,7 @@ static int hi556_probe(struct i2c_client *client)
|
|||
goto probe_error_v4l2_ctrl_handler_free;
|
||||
}
|
||||
|
||||
ret = v4l2_async_register_subdev_sensor_common(&hi556->sd);
|
||||
ret = v4l2_async_register_subdev_sensor(&hi556->sd);
|
||||
if (ret < 0) {
|
||||
dev_err(&client->dev, "failed to register V4L2 subdev: %d",
|
||||
ret);
|
||||
|
|
|
@ -1061,7 +1061,7 @@ static int imx214_probe(struct i2c_client *client)
|
|||
|
||||
imx214_entity_init_cfg(&imx214->sd, NULL);
|
||||
|
||||
ret = v4l2_async_register_subdev_sensor_common(&imx214->sd);
|
||||
ret = v4l2_async_register_subdev_sensor(&imx214->sd);
|
||||
if (ret < 0) {
|
||||
dev_err(dev, "could not register v4l2 device\n");
|
||||
goto free_entity;
|
||||
|
|
|
@ -1528,7 +1528,7 @@ static int imx219_probe(struct i2c_client *client)
|
|||
goto error_handler_free;
|
||||
}
|
||||
|
||||
ret = v4l2_async_register_subdev_sensor_common(&imx219->sd);
|
||||
ret = v4l2_async_register_subdev_sensor(&imx219->sd);
|
||||
if (ret < 0) {
|
||||
dev_err(dev, "failed to register sensor sub-device: %d\n", ret);
|
||||
goto error_media_entity;
|
||||
|
|
|
@ -1289,7 +1289,7 @@ static int imx258_probe(struct i2c_client *client)
|
|||
if (ret)
|
||||
goto error_handler_free;
|
||||
|
||||
ret = v4l2_async_register_subdev_sensor_common(&imx258->sd);
|
||||
ret = v4l2_async_register_subdev_sensor(&imx258->sd);
|
||||
if (ret < 0)
|
||||
goto error_media_entity;
|
||||
|
||||
|
|
|
@ -2486,7 +2486,7 @@ static int imx319_probe(struct i2c_client *client)
|
|||
goto error_handler_free;
|
||||
}
|
||||
|
||||
ret = v4l2_async_register_subdev_sensor_common(&imx319->sd);
|
||||
ret = v4l2_async_register_subdev_sensor(&imx319->sd);
|
||||
if (ret < 0)
|
||||
goto error_media_entity;
|
||||
|
||||
|
|
|
@ -1057,7 +1057,7 @@ static int imx334_probe(struct i2c_client *client)
|
|||
goto error_handler_free;
|
||||
}
|
||||
|
||||
ret = v4l2_async_register_subdev_sensor_common(&imx334->sd);
|
||||
ret = v4l2_async_register_subdev_sensor(&imx334->sd);
|
||||
if (ret < 0) {
|
||||
dev_err(imx334->dev,
|
||||
"failed to register async subdev: %d", ret);
|
||||
|
|
|
@ -1786,7 +1786,7 @@ static int imx355_probe(struct i2c_client *client)
|
|||
goto error_handler_free;
|
||||
}
|
||||
|
||||
ret = v4l2_async_register_subdev_sensor_common(&imx355->sd);
|
||||
ret = v4l2_async_register_subdev_sensor(&imx355->sd);
|
||||
if (ret < 0)
|
||||
goto error_media_entity;
|
||||
|
||||
|
|
|
@ -1738,7 +1738,7 @@ static int ov13858_probe(struct i2c_client *client,
|
|||
goto error_handler_free;
|
||||
}
|
||||
|
||||
ret = v4l2_async_register_subdev_sensor_common(&ov13858->sd);
|
||||
ret = v4l2_async_register_subdev_sensor(&ov13858->sd);
|
||||
if (ret < 0)
|
||||
goto error_media_entity;
|
||||
|
||||
|
|
|
@ -1154,7 +1154,7 @@ static int ov2740_probe(struct i2c_client *client)
|
|||
goto probe_error_v4l2_ctrl_handler_free;
|
||||
}
|
||||
|
||||
ret = v4l2_async_register_subdev_sensor_common(&ov2740->sd);
|
||||
ret = v4l2_async_register_subdev_sensor(&ov2740->sd);
|
||||
if (ret < 0) {
|
||||
dev_err(&client->dev, "failed to register V4L2 subdev: %d",
|
||||
ret);
|
||||
|
|
|
@ -3162,7 +3162,7 @@ static int ov5640_probe(struct i2c_client *client)
|
|||
if (ret)
|
||||
goto entity_cleanup;
|
||||
|
||||
ret = v4l2_async_register_subdev_sensor_common(&sensor->sd);
|
||||
ret = v4l2_async_register_subdev_sensor(&sensor->sd);
|
||||
if (ret)
|
||||
goto free_ctrls;
|
||||
|
||||
|
|
|
@ -2559,7 +2559,7 @@ static int ov5648_probe(struct i2c_client *client)
|
|||
|
||||
/* V4L2 subdev register */
|
||||
|
||||
ret = v4l2_async_register_subdev_sensor_common(subdev);
|
||||
ret = v4l2_async_register_subdev_sensor(subdev);
|
||||
if (ret)
|
||||
goto error_pm;
|
||||
|
||||
|
|
|
@ -2503,7 +2503,7 @@ static int ov5670_probe(struct i2c_client *client)
|
|||
}
|
||||
|
||||
/* Async register for subdev */
|
||||
ret = v4l2_async_register_subdev_sensor_common(&ov5670->sd);
|
||||
ret = v4l2_async_register_subdev_sensor(&ov5670->sd);
|
||||
if (ret < 0) {
|
||||
err_msg = "v4l2_async_register_subdev() error";
|
||||
goto error_entity_cleanup;
|
||||
|
|
|
@ -1193,7 +1193,7 @@ static int ov5675_probe(struct i2c_client *client)
|
|||
goto probe_error_v4l2_ctrl_handler_free;
|
||||
}
|
||||
|
||||
ret = v4l2_async_register_subdev_sensor_common(&ov5675->sd);
|
||||
ret = v4l2_async_register_subdev_sensor(&ov5675->sd);
|
||||
if (ret < 0) {
|
||||
dev_err(&client->dev, "failed to register V4L2 subdev: %d",
|
||||
ret);
|
||||
|
|
|
@ -1336,7 +1336,7 @@ static int ov5695_probe(struct i2c_client *client,
|
|||
goto err_power_off;
|
||||
#endif
|
||||
|
||||
ret = v4l2_async_register_subdev_sensor_common(sd);
|
||||
ret = v4l2_async_register_subdev_sensor(sd);
|
||||
if (ret) {
|
||||
dev_err(dev, "v4l2 async register subdev failed\n");
|
||||
goto err_clean_entity;
|
||||
|
|
|
@ -1795,7 +1795,7 @@ static int ov8856_probe(struct i2c_client *client)
|
|||
goto probe_error_v4l2_ctrl_handler_free;
|
||||
}
|
||||
|
||||
ret = v4l2_async_register_subdev_sensor_common(&ov8856->sd);
|
||||
ret = v4l2_async_register_subdev_sensor(&ov8856->sd);
|
||||
if (ret < 0) {
|
||||
dev_err(&client->dev, "failed to register V4L2 subdev: %d",
|
||||
ret);
|
||||
|
|
|
@ -2904,7 +2904,7 @@ static int ov8865_probe(struct i2c_client *client)
|
|||
|
||||
/* V4L2 subdev register */
|
||||
|
||||
ret = v4l2_async_register_subdev_sensor_common(subdev);
|
||||
ret = v4l2_async_register_subdev_sensor(subdev);
|
||||
if (ret)
|
||||
goto error_pm;
|
||||
|
||||
|
|
|
@ -964,7 +964,7 @@ static int ov9734_probe(struct i2c_client *client)
|
|||
goto probe_error_v4l2_ctrl_handler_free;
|
||||
}
|
||||
|
||||
ret = v4l2_async_register_subdev_sensor_common(&ov9734->sd);
|
||||
ret = v4l2_async_register_subdev_sensor(&ov9734->sd);
|
||||
if (ret < 0) {
|
||||
dev_err(&client->dev, "failed to register V4L2 subdev: %d",
|
||||
ret);
|
||||
|
|
|
@ -1308,7 +1308,7 @@ v4l2_async_notifier_parse_fwnode_sensor(struct device *dev,
|
|||
return 0;
|
||||
}
|
||||
|
||||
int v4l2_async_register_subdev_sensor_common(struct v4l2_subdev *sd)
|
||||
int v4l2_async_register_subdev_sensor(struct v4l2_subdev *sd)
|
||||
{
|
||||
struct v4l2_async_notifier *notifier;
|
||||
int ret;
|
||||
|
@ -1347,7 +1347,7 @@ out_cleanup:
|
|||
|
||||
return ret;
|
||||
}
|
||||
EXPORT_SYMBOL_GPL(v4l2_async_register_subdev_sensor_common);
|
||||
EXPORT_SYMBOL_GPL(v4l2_async_register_subdev_sensor);
|
||||
|
||||
MODULE_LICENSE("GPL");
|
||||
MODULE_AUTHOR("Sakari Ailus <sakari.ailus@linux.intel.com>");
|
||||
|
|
|
@ -286,10 +286,10 @@ void v4l2_async_notifier_cleanup(struct v4l2_async_notifier *notifier);
|
|||
int v4l2_async_register_subdev(struct v4l2_subdev *sd);
|
||||
|
||||
/**
|
||||
* v4l2_async_register_subdev_sensor_common - registers a sensor sub-device to
|
||||
* the asynchronous sub-device
|
||||
* framework and parse set up common
|
||||
* sensor related devices
|
||||
* v4l2_async_register_subdev_sensor - registers a sensor sub-device to the
|
||||
* asynchronous sub-device framework and
|
||||
* parse set up common sensor related
|
||||
* devices
|
||||
*
|
||||
* @sd: pointer to struct &v4l2_subdev
|
||||
*
|
||||
|
@ -305,7 +305,7 @@ int v4l2_async_register_subdev(struct v4l2_subdev *sd);
|
|||
* to register it.
|
||||
*/
|
||||
int __must_check
|
||||
v4l2_async_register_subdev_sensor_common(struct v4l2_subdev *sd);
|
||||
v4l2_async_register_subdev_sensor(struct v4l2_subdev *sd);
|
||||
|
||||
/**
|
||||
* v4l2_async_unregister_subdev - unregisters a sub-device to the asynchronous
|
||||
|
|
Loading…
Reference in New Issue