USB: core: be specific about attribute permissions
authorGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 23 Aug 2013 23:05:26 +0000 (16:05 -0700)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sun, 25 Aug 2013 22:12:03 +0000 (15:12 -0700)
commitd03f254f2ee2a708af9a7347402d9aed7f6cc4c1
treef07afa1896e3d87385f3aa0bcc475ed5874ac210
parent598d03610a0169eb88d2b08d6743be31b3b9c258
USB: core: be specific about attribute permissions

Instead of having to audit all sysfs attributes, to ensure we get them
right, use the default macros the driver core provides us (read-only,
read-write) to make the code simpler, and to prevent any mistakes from
ever happening.

Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/usb/core/endpoint.c
drivers/usb/core/hcd.c
drivers/usb/core/port.c
drivers/usb/core/sysfs.c