diff options
author | Felipe Balbi <balbi@ti.com> | 2013-02-26 19:15:14 +0200 |
---|---|---|
committer | Felipe Balbi <balbi@ti.com> | 2013-03-18 11:17:56 +0200 |
commit | a5fcb066d284d8e525e1e1a4799722e8616cfe76 (patch) | |
tree | 5a1614c85ffe64cc597ae8ecfddcc636c3caa382 /drivers/usb/gadget/udc-core.c | |
parent | ddf47ccbfebc12add813cf729ecfc2d5ab59ca19 (diff) | |
download | op-kernel-dev-a5fcb066d284d8e525e1e1a4799722e8616cfe76.zip op-kernel-dev-a5fcb066d284d8e525e1e1a4799722e8616cfe76.tar.gz |
usb: gadget: udc-core: anywone can read 'speed' attributes
current code only allows the file owner (usually
root) to read current_speed and maximum_speed
sysfs files. Let anyone read those.
Signed-off-by: Felipe Balbi <balbi@ti.com>
Diffstat (limited to 'drivers/usb/gadget/udc-core.c')
-rw-r--r-- | drivers/usb/gadget/udc-core.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/usb/gadget/udc-core.c b/drivers/usb/gadget/udc-core.c index 26e116b..7999cc6 100644 --- a/drivers/usb/gadget/udc-core.c +++ b/drivers/usb/gadget/udc-core.c @@ -471,7 +471,7 @@ ssize_t usb_udc_##param##_show(struct device *dev, \ return snprintf(buf, PAGE_SIZE, "%s\n", \ usb_speed_string(udc->gadget->param)); \ } \ -static DEVICE_ATTR(name, S_IRUSR, usb_udc_##param##_show, NULL) +static DEVICE_ATTR(name, S_IRUGO, usb_udc_##param##_show, NULL) static USB_UDC_SPEED_ATTR(current_speed, speed); static USB_UDC_SPEED_ATTR(maximum_speed, max_speed); |