[PATCH 1/1] media: v4l2: Fix v4l2_i2c_subdev_set_name function documentation

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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 commit 0658293012af ("media: v4l: subdev: Add a function to set an I²C sub-device's name")
Signed-off-by: Alexander Stein <alexander.stein@xxxxxxxxxxxxxxx>
---
Apparently you can't provide a proper device name in ACPI (see [1]), so
using the driver's name is reasonable. Adjust function documentation
accordingly.

[1] https://lore.kernel.org/all/YtpDp3ahpabQ1ubY@xxxxxxxxxxxxxxxxxxxxxx/

 include/media/v4l2-common.h | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/include/media/v4l2-common.h b/include/media/v4l2-common.h
index b708d63995f4..2ae2be4c87e5 100644
--- a/include/media/v4l2-common.h
+++ b/include/media/v4l2-common.h
@@ -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
  */
-- 
2.25.1




[Index of Archives]     [Linux Input]     [Video for Linux]     [Gstreamer Embedded]     [Mplayer Users]     [Linux USB Devel]     [Linux Audio Users]     [Linux Kernel]     [Linux SCSI]     [Yosemite Backpacking]

  Powered by Linux