misc: rk803: Add compat_ioctl

Signed-off-by: Roger Chen <roger.chen@rock-chips.com>
Change-Id: I578bf38a56f02978cca7f84e0fe0943308a63ae1
This commit is contained in:
Roger Chen
2021-12-02 19:35:11 +08:00
committed by Tao Huang
parent e21ffc697c
commit d4156b7d78

View File

@@ -151,6 +151,9 @@ static long rk803_dev_ioctl(struct file *file, unsigned int cmd,
static const struct file_operations rk803_fops = {
.owner = THIS_MODULE,
.unlocked_ioctl = rk803_dev_ioctl,
#ifdef CONFIG_COMPAT
.compat_ioctl = rk803_dev_ioctl
#endif
};
static int