projects
/
firefly-linux-kernel-4.4.55.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
5cee27d
)
usb: gadget: accessory: add compat_ioctl
author
Wu Liang feng
<wulf@rock-chips.com>
Mon, 23 May 2016 06:51:10 +0000
(14:51 +0800)
committer
Huang, Tao
<huangtao@rock-chips.com>
Mon, 23 May 2016 07:53:50 +0000
(15:53 +0800)
Add compat_ioctl for accessory to work on 64-bit platforms.
Change-Id: I805395c35017111bf0c462847f11765c7088d266
Signed-off-by: Wu Liang feng <wulf@rock-chips.com>
drivers/usb/gadget/function/f_accessory.c
patch
|
blob
|
history
diff --git
a/drivers/usb/gadget/function/f_accessory.c
b/drivers/usb/gadget/function/f_accessory.c
index c621235601439b1cf220cb98bb59fe4830d9b812..067eb3bba65b231d817638d3f7e05f6abcfb5da2 100644
(file)
--- a/
drivers/usb/gadget/function/f_accessory.c
+++ b/
drivers/usb/gadget/function/f_accessory.c
@@
-781,6
+781,9
@@
static const struct file_operations acc_fops = {
.read = acc_read,
.write = acc_write,
.unlocked_ioctl = acc_ioctl,
+#ifdef CONFIG_COMPAT
+ .compat_ioctl = acc_ioctl,
+#endif
.open = acc_open,
.release = acc_release,
};