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:
9ce6f6b
)
usb: gadget: accessory: add compatibility ioctl
author
Wu Liang feng
<wulf@rock-chips.com>
Tue, 22 Sep 2015 03:42:59 +0000
(11:42 +0800)
committer
Wu Liang feng
<wulf@rock-chips.com>
Tue, 22 Sep 2015 03:42:59 +0000
(11:42 +0800)
Change-Id: I301c1f2f17c906d0a3912248fa16bc20b4a32b3c
Signed-off-by: Wu Liang feng <wulf@rock-chips.com>
drivers/usb/gadget/f_accessory.c
patch
|
blob
|
history
diff --git
a/drivers/usb/gadget/f_accessory.c
b/drivers/usb/gadget/f_accessory.c
index 0237f1e059b47cb3dad8adfce5b0c0e40d5ac1e4..38df2865cf837683e03ee71df82ae00ba61e4bbd 100644
(file)
--- a/
drivers/usb/gadget/f_accessory.c
+++ b/
drivers/usb/gadget/f_accessory.c
@@
-765,6
+765,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,
};