summaryrefslogtreecommitdiff
path: root/Documentation/translations/zh_CN/video4linux
diff options
context:
space:
mode:
authorWolfram Sang <wsa+renesas@sang-engineering.com>2020-04-25 13:06:16 +0300
committerJonathan Corbet <corbet@lwn.net>2020-04-28 21:34:17 +0300
commit6feb76dbd14a3addce915f251580f7b89d68d356 (patch)
tree62d62c467cbbf60ecab31cd457639dfee28e0a5d /Documentation/translations/zh_CN/video4linux
parentb529c06f9dc74a7ad8cb875e840967737d0455f3 (diff)
downloadlinux-6feb76dbd14a3addce915f251580f7b89d68d356.tar.xz
Documentation: zh_CN: convert to use i2c_new_client_device()
Move away from the deprecated API and advertise the new one. Signed-off-by: Wolfram Sang <wsa+renesas@sang-engineering.com> Reviewed-by: Alex Shi <alex.shi@linux.alibaba.com> Link: https://lore.kernel.org/r/20200425100616.3363-1-wsa+renesas@sang-engineering.com Signed-off-by: Jonathan Corbet <corbet@lwn.net>
Diffstat (limited to 'Documentation/translations/zh_CN/video4linux')
-rw-r--r--Documentation/translations/zh_CN/video4linux/v4l2-framework.txt2
1 files changed, 1 insertions, 1 deletions
diff --git a/Documentation/translations/zh_CN/video4linux/v4l2-framework.txt b/Documentation/translations/zh_CN/video4linux/v4l2-framework.txt
index 9c39ee58ea50..a96abcdec777 100644
--- a/Documentation/translations/zh_CN/video4linux/v4l2-framework.txt
+++ b/Documentation/translations/zh_CN/video4linux/v4l2-framework.txt
@@ -488,7 +488,7 @@ struct v4l2_subdev *sd = v4l2_i2c_new_subdev(v4l2_dev, adapter,
这个函数会加载给定的模块(如果没有模块需要加载,可以为 NULL),
并用给定的 i2c 适配器结构体指针(i2c_adapter)和 器件地址(chip/address)
-作为参数调用 i2c_new_device()。如果一切顺利,则就在 v4l2_device
+作为参数调用 i2c_new_client_device()。如果一切顺利,则就在 v4l2_device
中注册了子设备。
你也可以利用 v4l2_i2c_new_subdev()的最后一个参数,传递一个可能的