summaryrefslogtreecommitdiff
path: root/drivers/iio/accel/mma9553.c
diff options
context:
space:
mode:
authorAlan Stern <stern@rowland.harvard.edu>2022-02-25 17:38:25 +0300
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2022-02-25 18:53:41 +0300
commitf6a9a2d64dd168b7d71076c0e6b2be7db7cb7399 (patch)
treea3d63d997ee6d733e43759df8822309e527d050c /drivers/iio/accel/mma9553.c
parentbc25c55812ff72cd3f2c310ba42f78a812dac95e (diff)
downloadlinux-f6a9a2d64dd168b7d71076c0e6b2be7db7cb7399.tar.xz
USB: core: Update kerneldoc for usb_get_dev() and usb_get_intf()
The kerneldoc for usb_get_dev() and usb_get_intf() says that drivers should always refcount the references they hold for the usb_device or usb_interface structure, respectively. But this is an overstatement: In many cases drivers do not access these references after they have been unbound, and in such cases refcounting is unnecessary. This patch updates the kerneldoc for the two routines, explaining when a driver does not need to increment and decrement the refcount. This should help dispel misconceptions which might otherwise afflict programmers new to the USB subsystem. Signed-off-by: Alan Stern <stern@rowland.harvard.edu> Link: https://lore.kernel.org/r/Yhjp4Rp9Alipmwtq@rowland.harvard.edu Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/iio/accel/mma9553.c')
0 files changed, 0 insertions, 0 deletions