rpmsg: Add compat ioctl for rpmsg char driver
Add compat ioctl callback to support 32bit user space applications. Signed-off-by: Arun Kumar Neelakantam <aneela@codeaurora.org> Signed-off-by: Bjorn Andersson <bjorn.andersson@linaro.org>
This commit is contained in:
parent
475452fca1
commit
00b645e0b4
1 changed files with 2 additions and 0 deletions
|
@ -285,6 +285,7 @@ static const struct file_operations rpmsg_eptdev_fops = {
|
|||
.write = rpmsg_eptdev_write,
|
||||
.poll = rpmsg_eptdev_poll,
|
||||
.unlocked_ioctl = rpmsg_eptdev_ioctl,
|
||||
.compat_ioctl = rpmsg_eptdev_ioctl,
|
||||
};
|
||||
|
||||
static ssize_t name_show(struct device *dev, struct device_attribute *attr,
|
||||
|
@ -445,6 +446,7 @@ static const struct file_operations rpmsg_ctrldev_fops = {
|
|||
.open = rpmsg_ctrldev_open,
|
||||
.release = rpmsg_ctrldev_release,
|
||||
.unlocked_ioctl = rpmsg_ctrldev_ioctl,
|
||||
.compat_ioctl = rpmsg_ctrldev_ioctl,
|
||||
};
|
||||
|
||||
static void rpmsg_ctrldev_release_device(struct device *dev)
|
||||
|
|
Loading…
Reference in a new issue