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)
commit0846e7e9856c0928223447d9349a877202a63f24
tree1ef6df58927568478e17396855c579ad45aa9fee
parentaf74d2dae8f85a0e90a30594beb507f5d954fa3f
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