usb: Clarify expected behavior of dev_bin_attrs_are_visible()
authorElbert Mai <code@elbertmai.com>
Wed, 6 Mar 2024 00:15:03 +0000 (16:15 -0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 6 Mar 2024 11:35:26 +0000 (11:35 +0000)
commitdfea18989aa7beb42c2cb6344fe8787de35d9471
tree17f4e1c35e748352b6d1bab6c23ab8d597fafe7b
parent28cbed496059fe1868203b76e9e0ef285733524d
usb: Clarify expected behavior of dev_bin_attrs_are_visible()

The commit "usb: Export BOS descriptor to sysfs" added a binary attribute
group to sysfs. It doesn't check if the descriptors attribute should be
visible, which is by design and not an oversight. Update a comment so that
it better explains this in the dev_bin_attrs_are_visible() function.

Signed-off-by: Elbert Mai <code@elbertmai.com>
Link: https://lore.kernel.org/r/20240306001503.313028-1-code@elbertmai.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/usb/core/sysfs.c