mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-08-24 01:41:39 +00:00
usb: gadget: uvc: fix permissions of configfs attributes
76e0da3
"usb-gadget/uvc: use per-attribute show and store methods" removed write permission for writeable attributes. Correct attribute permissions. Fixes:76e0da3
"usb-gadget/uvc: use per-attribute show and store methods" Reviewed-by: Christoph Hellwig <hch@lst.de> Reviewed-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com> Signed-off-by: Mian Yousaf Kaukab <yousaf.kaukab@intel.com> Signed-off-by: Felipe Balbi <balbi@ti.com>
This commit is contained in:
parent
4d05591094
commit
27681abc42
1 changed files with 1 additions and 1 deletions
|
@ -20,7 +20,7 @@
|
||||||
#define UVC_ATTR(prefix, cname, aname) \
|
#define UVC_ATTR(prefix, cname, aname) \
|
||||||
static struct configfs_attribute prefix##attr_##cname = { \
|
static struct configfs_attribute prefix##attr_##cname = { \
|
||||||
.ca_name = __stringify(aname), \
|
.ca_name = __stringify(aname), \
|
||||||
.ca_mode = S_IRUGO, \
|
.ca_mode = S_IRUGO | S_IWUGO, \
|
||||||
.ca_owner = THIS_MODULE, \
|
.ca_owner = THIS_MODULE, \
|
||||||
.show = prefix##cname##_show, \
|
.show = prefix##cname##_show, \
|
||||||
.store = prefix##cname##_store, \
|
.store = prefix##cname##_store, \
|
||||||
|
|
Loading…
Reference in a new issue