Commit 15786f7b authored by Sakari Ailus's avatar Sakari Ailus Committed by Mauro Carvalho Chehab

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: default avatarSakari Ailus <sakari.ailus@linux.intel.com>
Reviewed-by: default avatarEzequiel Garcia <ezequiel@collabora.com>
Signed-off-by: default avatarMauro Carvalho Chehab <mchehab+huawei@kernel.org>
parent 9e7fabbc
...@@ -208,7 +208,7 @@ the needs of the driver. ...@@ -208,7 +208,7 @@ the needs of the driver.
:c:func:`v4l2_async_notifier_add_i2c_subdev` are for bridge and ISP drivers for :c:func:`v4l2_async_notifier_add_i2c_subdev` are for bridge and ISP drivers for
registering their async sub-devices with the notifier. 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 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 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 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) ...@@ -3572,7 +3572,7 @@ static int ccs_probe(struct i2c_client *client)
pm_runtime_get_noresume(&client->dev); pm_runtime_get_noresume(&client->dev);
pm_runtime_enable(&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) if (rval < 0)
goto out_disable_runtime_pm; goto out_disable_runtime_pm;
......
...@@ -1443,7 +1443,7 @@ static int et8ek8_probe(struct i2c_client *client) ...@@ -1443,7 +1443,7 @@ static int et8ek8_probe(struct i2c_client *client)
goto err_mutex; goto err_mutex;
} }
ret = v4l2_async_register_subdev_sensor_common(&sensor->subdev); ret = v4l2_async_register_subdev_sensor(&sensor->subdev);
if (ret < 0) if (ret < 0)
goto err_entity; goto err_entity;
......
...@@ -1145,7 +1145,7 @@ static int hi556_probe(struct i2c_client *client) ...@@ -1145,7 +1145,7 @@ static int hi556_probe(struct i2c_client *client)
goto probe_error_v4l2_ctrl_handler_free; 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) { if (ret < 0) {
dev_err(&client->dev, "failed to register V4L2 subdev: %d", dev_err(&client->dev, "failed to register V4L2 subdev: %d",
ret); ret);
......
...@@ -1061,7 +1061,7 @@ static int imx214_probe(struct i2c_client *client) ...@@ -1061,7 +1061,7 @@ static int imx214_probe(struct i2c_client *client)
imx214_entity_init_cfg(&imx214->sd, NULL); 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) { if (ret < 0) {
dev_err(dev, "could not register v4l2 device\n"); dev_err(dev, "could not register v4l2 device\n");
goto free_entity; goto free_entity;
......
...@@ -1528,7 +1528,7 @@ static int imx219_probe(struct i2c_client *client) ...@@ -1528,7 +1528,7 @@ static int imx219_probe(struct i2c_client *client)
goto error_handler_free; goto error_handler_free;
} }
ret = v4l2_async_register_subdev_sensor_common(&imx219->sd); ret = v4l2_async_register_subdev_sensor(&imx219->sd);
if (ret < 0) { if (ret < 0) {
dev_err(dev, "failed to register sensor sub-device: %d\n", ret); dev_err(dev, "failed to register sensor sub-device: %d\n", ret);
goto error_media_entity; goto error_media_entity;
......
...@@ -1289,7 +1289,7 @@ static int imx258_probe(struct i2c_client *client) ...@@ -1289,7 +1289,7 @@ static int imx258_probe(struct i2c_client *client)
if (ret) if (ret)
goto error_handler_free; goto error_handler_free;
ret = v4l2_async_register_subdev_sensor_common(&imx258->sd); ret = v4l2_async_register_subdev_sensor(&imx258->sd);
if (ret < 0) if (ret < 0)
goto error_media_entity; goto error_media_entity;
......
...@@ -2486,7 +2486,7 @@ static int imx319_probe(struct i2c_client *client) ...@@ -2486,7 +2486,7 @@ static int imx319_probe(struct i2c_client *client)
goto error_handler_free; goto error_handler_free;
} }
ret = v4l2_async_register_subdev_sensor_common(&imx319->sd); ret = v4l2_async_register_subdev_sensor(&imx319->sd);
if (ret < 0) if (ret < 0)
goto error_media_entity; goto error_media_entity;
......
...@@ -1057,7 +1057,7 @@ static int imx334_probe(struct i2c_client *client) ...@@ -1057,7 +1057,7 @@ static int imx334_probe(struct i2c_client *client)
goto error_handler_free; goto error_handler_free;
} }
ret = v4l2_async_register_subdev_sensor_common(&imx334->sd); ret = v4l2_async_register_subdev_sensor(&imx334->sd);
if (ret < 0) { if (ret < 0) {
dev_err(imx334->dev, dev_err(imx334->dev,
"failed to register async subdev: %d", ret); "failed to register async subdev: %d", ret);
......
...@@ -1786,7 +1786,7 @@ static int imx355_probe(struct i2c_client *client) ...@@ -1786,7 +1786,7 @@ static int imx355_probe(struct i2c_client *client)
goto error_handler_free; goto error_handler_free;
} }
ret = v4l2_async_register_subdev_sensor_common(&imx355->sd); ret = v4l2_async_register_subdev_sensor(&imx355->sd);
if (ret < 0) if (ret < 0)
goto error_media_entity; goto error_media_entity;
......
...@@ -1738,7 +1738,7 @@ static int ov13858_probe(struct i2c_client *client, ...@@ -1738,7 +1738,7 @@ static int ov13858_probe(struct i2c_client *client,
goto error_handler_free; goto error_handler_free;
} }
ret = v4l2_async_register_subdev_sensor_common(&ov13858->sd); ret = v4l2_async_register_subdev_sensor(&ov13858->sd);
if (ret < 0) if (ret < 0)
goto error_media_entity; goto error_media_entity;
......
...@@ -1154,7 +1154,7 @@ static int ov2740_probe(struct i2c_client *client) ...@@ -1154,7 +1154,7 @@ static int ov2740_probe(struct i2c_client *client)
goto probe_error_v4l2_ctrl_handler_free; 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) { if (ret < 0) {
dev_err(&client->dev, "failed to register V4L2 subdev: %d", dev_err(&client->dev, "failed to register V4L2 subdev: %d",
ret); ret);
......
...@@ -3162,7 +3162,7 @@ static int ov5640_probe(struct i2c_client *client) ...@@ -3162,7 +3162,7 @@ static int ov5640_probe(struct i2c_client *client)
if (ret) if (ret)
goto entity_cleanup; goto entity_cleanup;
ret = v4l2_async_register_subdev_sensor_common(&sensor->sd); ret = v4l2_async_register_subdev_sensor(&sensor->sd);
if (ret) if (ret)
goto free_ctrls; goto free_ctrls;
......
...@@ -2559,7 +2559,7 @@ static int ov5648_probe(struct i2c_client *client) ...@@ -2559,7 +2559,7 @@ static int ov5648_probe(struct i2c_client *client)
/* V4L2 subdev register */ /* V4L2 subdev register */
ret = v4l2_async_register_subdev_sensor_common(subdev); ret = v4l2_async_register_subdev_sensor(subdev);
if (ret) if (ret)
goto error_pm; goto error_pm;
......
...@@ -2503,7 +2503,7 @@ static int ov5670_probe(struct i2c_client *client) ...@@ -2503,7 +2503,7 @@ static int ov5670_probe(struct i2c_client *client)
} }
/* Async register for subdev */ /* Async register for subdev */
ret = v4l2_async_register_subdev_sensor_common(&ov5670->sd); ret = v4l2_async_register_subdev_sensor(&ov5670->sd);
if (ret < 0) { if (ret < 0) {
err_msg = "v4l2_async_register_subdev() error"; err_msg = "v4l2_async_register_subdev() error";
goto error_entity_cleanup; goto error_entity_cleanup;
......
...@@ -1193,7 +1193,7 @@ static int ov5675_probe(struct i2c_client *client) ...@@ -1193,7 +1193,7 @@ static int ov5675_probe(struct i2c_client *client)
goto probe_error_v4l2_ctrl_handler_free; 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) { if (ret < 0) {
dev_err(&client->dev, "failed to register V4L2 subdev: %d", dev_err(&client->dev, "failed to register V4L2 subdev: %d",
ret); ret);
......
...@@ -1336,7 +1336,7 @@ static int ov5695_probe(struct i2c_client *client, ...@@ -1336,7 +1336,7 @@ static int ov5695_probe(struct i2c_client *client,
goto err_power_off; goto err_power_off;
#endif #endif
ret = v4l2_async_register_subdev_sensor_common(sd); ret = v4l2_async_register_subdev_sensor(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;
......
...@@ -1795,7 +1795,7 @@ static int ov8856_probe(struct i2c_client *client) ...@@ -1795,7 +1795,7 @@ static int ov8856_probe(struct i2c_client *client)
goto probe_error_v4l2_ctrl_handler_free; 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) { if (ret < 0) {
dev_err(&client->dev, "failed to register V4L2 subdev: %d", dev_err(&client->dev, "failed to register V4L2 subdev: %d",
ret); ret);
......
...@@ -2904,7 +2904,7 @@ static int ov8865_probe(struct i2c_client *client) ...@@ -2904,7 +2904,7 @@ static int ov8865_probe(struct i2c_client *client)
/* V4L2 subdev register */ /* V4L2 subdev register */
ret = v4l2_async_register_subdev_sensor_common(subdev); ret = v4l2_async_register_subdev_sensor(subdev);
if (ret) if (ret)
goto error_pm; goto error_pm;
......
...@@ -964,7 +964,7 @@ static int ov9734_probe(struct i2c_client *client) ...@@ -964,7 +964,7 @@ static int ov9734_probe(struct i2c_client *client)
goto probe_error_v4l2_ctrl_handler_free; 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) { if (ret < 0) {
dev_err(&client->dev, "failed to register V4L2 subdev: %d", dev_err(&client->dev, "failed to register V4L2 subdev: %d",
ret); ret);
......
...@@ -1308,7 +1308,7 @@ v4l2_async_notifier_parse_fwnode_sensor(struct device *dev, ...@@ -1308,7 +1308,7 @@ v4l2_async_notifier_parse_fwnode_sensor(struct device *dev,
return 0; 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; struct v4l2_async_notifier *notifier;
int ret; int ret;
...@@ -1347,7 +1347,7 @@ int v4l2_async_register_subdev_sensor_common(struct v4l2_subdev *sd) ...@@ -1347,7 +1347,7 @@ int v4l2_async_register_subdev_sensor_common(struct v4l2_subdev *sd)
return ret; return ret;
} }
EXPORT_SYMBOL_GPL(v4l2_async_register_subdev_sensor_common); EXPORT_SYMBOL_GPL(v4l2_async_register_subdev_sensor);
MODULE_LICENSE("GPL"); MODULE_LICENSE("GPL");
MODULE_AUTHOR("Sakari Ailus <sakari.ailus@linux.intel.com>"); MODULE_AUTHOR("Sakari Ailus <sakari.ailus@linux.intel.com>");
......
...@@ -286,10 +286,10 @@ void v4l2_async_notifier_cleanup(struct v4l2_async_notifier *notifier); ...@@ -286,10 +286,10 @@ void v4l2_async_notifier_cleanup(struct v4l2_async_notifier *notifier);
int v4l2_async_register_subdev(struct v4l2_subdev *sd); int v4l2_async_register_subdev(struct v4l2_subdev *sd);
/** /**
* v4l2_async_register_subdev_sensor_common - registers a sensor sub-device to * v4l2_async_register_subdev_sensor - registers a sensor sub-device to the
* the asynchronous sub-device * asynchronous sub-device framework and
* framework and parse set up common * parse set up common sensor related
* sensor related devices * devices
* *
* @sd: pointer to struct &v4l2_subdev * @sd: pointer to struct &v4l2_subdev
* *
...@@ -305,7 +305,7 @@ int v4l2_async_register_subdev(struct v4l2_subdev *sd); ...@@ -305,7 +305,7 @@ int v4l2_async_register_subdev(struct v4l2_subdev *sd);
* to register it. * to register it.
*/ */
int __must_check 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 * v4l2_async_unregister_subdev - unregisters a sub-device to the asynchronous
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment