]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commitd77199d3727da406dc06c6de17d82716c956fd11
treef07afa1896e3d87385f3aa0bcc475ed5874ac210
parent5088f1f827460e1d5ecf0a6aa97788f67499e7aa
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