]> git.baikalelectronics.ru Git - kernel.git/commit
usb: Add support for indicating whether a port is removable
authorMatthew Garrett <mjg@redhat.com>
Fri, 3 Feb 2012 22:11:54 +0000 (17:11 -0500)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 9 Feb 2012 16:40:11 +0000 (08:40 -0800)
commit4fa11e15038c63ec49a0e32ffd1359020c637591
tree1ef6df58927568478e17396855c579ad45aa9fee
parent9d15217ceaa0ad1f82c940da5dcfb6044c289ce9
usb: Add support for indicating whether a port is removable

Userspace may want to make policy decisions based on whether or not a
given USB device is removable. Add a per-device member and support
for exposing it in sysfs. Information sources to populate it will be
added later.

Signed-off-by: Matthew Garrett <mjg@redhat.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Documentation/ABI/testing/sysfs-bus-usb
drivers/usb/core/sysfs.c
include/linux/usb.h