Skip to content

Commit bc5a3e4

Browse files
Wolfram Sangwsakernel
authored andcommitted
Documentation: media: convert to use i2c_new_client_device()
Move away from the deprecated API and advertise the new one. Signed-off-by: Wolfram Sang <[email protected]> Reviewed-by: Mauro Carvalho Chehab <[email protected]> Signed-off-by: Wolfram Sang <[email protected]>
1 parent 9e1b93b commit bc5a3e4

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

Documentation/driver-api/media/v4l2-subdev.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -451,7 +451,7 @@ The bridge driver also has some helper functions it can use:
451451
"module_foo", "chipid", 0x36, NULL);
452452
453453
This loads the given module (can be ``NULL`` if no module needs to be loaded)
454-
and calls :c:func:`i2c_new_device` with the given ``i2c_adapter`` and
454+
and calls :c:func:`i2c_new_client_device` with the given ``i2c_adapter`` and
455455
chip/address arguments. If all goes well, then it registers the subdev with
456456
the v4l2_device.
457457

Documentation/userspace-api/media/conf_nitpick.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@
2727
("c:func", "copy_to_user"),
2828
("c:func", "determine_valid_ioctls"),
2929
("c:func", "ERR_PTR"),
30-
("c:func", "i2c_new_device"),
30+
("c:func", "i2c_new_client_device"),
3131
("c:func", "ioctl"),
3232
("c:func", "IS_ERR"),
3333
("c:func", "KERNEL_VERSION"),

0 commit comments

Comments
 (0)