diff options
Diffstat (limited to 'drivers/usb')
-rw-r--r-- | drivers/usb/gadget/f_accessory.c | 5 | ||||
-rw-r--r-- | drivers/usb/gadget/f_fs.c | 8 |
2 files changed, 13 insertions, 0 deletions
diff --git a/drivers/usb/gadget/f_accessory.c b/drivers/usb/gadget/f_accessory.c index f643146acb22..2ee3e4f18364 100644 --- a/drivers/usb/gadget/f_accessory.c +++ b/drivers/usb/gadget/f_accessory.c @@ -2,6 +2,8 @@ * Gadget Function Driver for Android USB accessories * * Copyright (C) 2011 Google, Inc. + * Copyright (c) 2014, NVIDIA CORPORATION. All rights reserved. + * * Author: Mike Lockwood <lockwood@android.com> * * This software is licensed under the terms of the GNU General Public @@ -756,6 +758,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, }; diff --git a/drivers/usb/gadget/f_fs.c b/drivers/usb/gadget/f_fs.c index bf7d627b9454..c84b34a839e7 100644 --- a/drivers/usb/gadget/f_fs.c +++ b/drivers/usb/gadget/f_fs.c @@ -2,6 +2,8 @@ * f_fs.c -- user mode file system API for USB composite function controllers * * Copyright (C) 2010 Samsung Electronics + * Copyright (c) 2014, NVIDIA CORPORATION. All rights reserved. + * * Author: Michal Nazarewicz <mina86@mina86.com> * * Based on inode.c (GadgetFS) which was: @@ -734,6 +736,9 @@ static const struct file_operations ffs_ep0_operations = { .read = ffs_ep0_read, .release = ffs_ep0_release, .unlocked_ioctl = ffs_ep0_ioctl, +#ifdef CONFIG_COMPAT + .compat_ioctl = ffs_ep0_ioctl, +#endif }; @@ -953,6 +958,9 @@ static const struct file_operations ffs_epfile_operations = { .read = ffs_epfile_read, .release = ffs_epfile_release, .unlocked_ioctl = ffs_epfile_ioctl, +#ifdef CONFIG_COMPAT + .compat_ioctl = ffs_epfile_ioctl, +#endif }; |