ANDROID: usb: gadget: f_accessory: add compat_ioctl support

On Android 32-bit system, the following Cts Verifier testcase failed:

manualTests#com.android.cts.verifier.usb.accessory.UsbAccessoryTestActivity

The reason is that compat_ioctl() needs to be called.
So let's add compat_ioctl() for 32-bit applications to solve this issue.

Bug: 223101878
Change-Id: I6e1f797d919494d293184411041955c33ad08aef
Signed-off-by: Aran Dalton <arda@allwinnertech.com>
(cherry picked from commit 77bf53b4861491ad49414d8fceefda2602274519)
This commit is contained in:
Aran Dalton 2022-03-07 17:34:34 +08:00 committed by ARDA Allwinner
parent e7f39d0aa2
commit 74720dae8b

View File

@ -931,6 +931,7 @@ static const struct file_operations acc_fops = {
.read = acc_read,
.write = acc_write,
.unlocked_ioctl = acc_ioctl,
.compat_ioctl = acc_ioctl,
.open = acc_open,
.release = acc_release,
};