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:
44a750d
)
usb: gadget: MTP support compat ioctl
author
lyz
<lyz@rock-chips.com>
Wed, 1 Apr 2015 08:04:27 +0000
(16:04 +0800)
committer
lyz
<lyz@rock-chips.com>
Wed, 1 Apr 2015 08:04:27 +0000
(16:04 +0800)
drivers/usb/gadget/f_mtp.c
patch
|
blob
|
history
diff --git
a/drivers/usb/gadget/f_mtp.c
b/drivers/usb/gadget/f_mtp.c
index 620aeaaf2d725930f66a773a15d33c5d94da4b89..651a3e3e90be589429ee20d312fb13181f5bb6e2 100644
(file)
--- a/
drivers/usb/gadget/f_mtp.c
+++ b/
drivers/usb/gadget/f_mtp.c
@@
-981,6
+981,9
@@
static const struct file_operations mtp_fops = {
.read = mtp_read,
.write = mtp_write,
.unlocked_ioctl = mtp_ioctl,
+#ifdef CONFIG_COMPAT
+ .compat_ioctl = mtp_ioctl,
+#endif
.open = mtp_open,
.release = mtp_release,
};