ODROID-N2: usb/gadget: add 'compat_ioctl(...)' for 32bit Android
authorDongjin Kim <tobetter@gmail.com>
Thu, 8 Aug 2019 09:51:03 +0000 (18:51 +0900)
committerDongjin Kim <tobetter@gmail.com>
Tue, 17 Mar 2020 21:37:18 +0000 (06:37 +0900)
Change-Id: I0ff9c0c97feb7388db8bb8ec4fb283fceb088ee7
Signed-off-by: Dongjin Kim <tobetter@gmail.com>
drivers/usb/gadget/function/f_accessory.c

index 7aa2656..d0f1df9 100644 (file)
@@ -779,6 +779,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,
 };