usb: gadget: accessory: add compatibility ioctl

Change-Id: I301c1f2f17c906d0a3912248fa16bc20b4a32b3c
Signed-off-by: Wu Liang feng <wulf@rock-chips.com>
This commit is contained in:
Wu Liang feng
2015-09-22 11:42:59 +08:00
parent 9ce6f6b608
commit 591df7e27b

View File

@@ -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,
};