提交 441fb6eb 编写于 作者: A Alexander Stein 提交者: Lipeng Sang

media: v4l2: Fix v4l2_i2c_subdev_set_name function documentation

stable inclusion
from stable-v5.10.153
commit 4953a989b72d2b809b18dde7a4c2844cba4232d4
category: bugfix
bugzilla: https://gitee.com/openeuler/kernel/issues/I64YCA

Reference: https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/commit/?id=4953a989b72d2b809b18dde7a4c2844cba4232d4

--------------------------------

[ Upstream commit bb9ea2c3 ]

The doc says the I²C device's name is used if devname is NULL, but
actually the I²C device driver's name is used.

Fixes: 06582930 ("media: v4l: subdev: Add a function to set an I²C sub-device's name")
Signed-off-by: NAlexander Stein <alexander.stein@ew.tq-group.com>
Signed-off-by: NSakari Ailus <sakari.ailus@linux.intel.com>
Signed-off-by: NMauro Carvalho Chehab <mchehab@kernel.org>
Signed-off-by: NSasha Levin <sashal@kernel.org>
Signed-off-by: NLipeng Sang <sanglipeng1@jd.com>
上级 3122ba7e
......@@ -175,7 +175,8 @@ struct v4l2_subdev *v4l2_i2c_new_subdev_board(struct v4l2_device *v4l2_dev,
*
* @sd: pointer to &struct v4l2_subdev
* @client: pointer to struct i2c_client
* @devname: the name of the device; if NULL, the I²C device's name will be used
* @devname: the name of the device; if NULL, the I²C device drivers's name
* will be used
* @postfix: sub-device specific string to put right after the I²C device name;
* may be NULL
*/
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册