mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-29 03:01:39 -04:00
3w-xxxx: Pass through compat mode ioctls
This allows 32-bit userspace tools (tw_cli, smartctl) to work on a 64-bit system. The command buffer is opaque to us, so, no word size problems. Signed-off-by: Ryan C. Underwood <[email protected]> Reviewed-by: Shane Seymour <[email protected]> Reviewed-by: Matthew R. Ochs <[email protected]> Signed-off-by: Martin K. Petersen <[email protected]>
This commit is contained in:
parent
4e09bff330
commit
4f44f35dd8
1 changed files with 3 additions and 0 deletions
|
|
@ -1045,6 +1045,9 @@ static int tw_chrdev_open(struct inode *inode, struct file *file)
|
|||
static const struct file_operations tw_fops = {
|
||||
.owner = THIS_MODULE,
|
||||
.unlocked_ioctl = tw_chrdev_ioctl,
|
||||
#ifdef CONFIG_COMPAT
|
||||
.compat_ioctl = tw_chrdev_ioctl,
|
||||
#endif
|
||||
.open = tw_chrdev_open,
|
||||
.release = NULL,
|
||||
.llseek = noop_llseek,
|
||||
|
|
|
|||
Loading…
Reference in a new issue