summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAlexander Stein <alexander.stein@ew.tq-group.com>2022-07-22 09:11:31 +0200
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2022-11-03 23:56:54 +0900
commit29a6902eb0761154f77da901d515a9dd5275109b (patch)
tree21df9fda736ef71fe0918a34a4d061c9952e1e66
parent6f3511eb8654b3d64e3235b0083704dad4fcc833 (diff)
downloadlinux-stable-29a6902eb0761154f77da901d515a9dd5275109b.tar.gz
linux-stable-29a6902eb0761154f77da901d515a9dd5275109b.tar.bz2
linux-stable-29a6902eb0761154f77da901d515a9dd5275109b.zip
media: v4l2: Fix v4l2_i2c_subdev_set_name function documentation
[ Upstream commit bb9ea2c31fa11b789ade4c3abcdda3c5370a76ab ] 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: 0658293012af ("media: v4l: subdev: Add a function to set an I²C sub-device's name") Signed-off-by: Alexander Stein <alexander.stein@ew.tq-group.com> Signed-off-by: Sakari Ailus <sakari.ailus@linux.intel.com> Signed-off-by: Mauro Carvalho Chehab <mchehab@kernel.org> Signed-off-by: Sasha Levin <sashal@kernel.org>
-rw-r--r--include/media/v4l2-common.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/include/media/v4l2-common.h b/include/media/v4l2-common.h
index c070d8ae11e5..c2e9660c4d75 100644
--- a/include/media/v4l2-common.h
+++ b/include/media/v4l2-common.h
@@ -174,7 +174,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
*/