diff options
author | Guenter Roeck <linux@roeck-us.net> | 2016-04-15 04:35:29 +0200 |
---|---|---|
committer | Olof Johansson <olof@lixom.net> | 2016-05-11 20:55:48 +0200 |
commit | 2521ea3e0d1b285cea371a38772d3eefa0490c71 (patch) | |
tree | 5f87ae2df535b7a09d4e8833d957de005c8f9209 /drivers | |
parent | platform/chrome: cros_ec_lightbar - use name instead of ID to hide lightbar a... (diff) | |
download | linux-2521ea3e0d1b285cea371a38772d3eefa0490c71.tar.xz linux-2521ea3e0d1b285cea371a38772d3eefa0490c71.zip |
platform/chrome: cros_ec_dev - Populate compat_ioctl
compat_ioctl has to be populated for 32 bit userspace applications to work
with 64 bit kernels.
Signed-off-by: Guenter Roeck <linux@roeck-us.net>
Tested-by: Brian Norris <briannorris@chromium.org>
Signed-off-by: Olof Johansson <olof@lixom.net>
Diffstat (limited to 'drivers')
-rw-r--r-- | drivers/platform/chrome/cros_ec_dev.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/drivers/platform/chrome/cros_ec_dev.c b/drivers/platform/chrome/cros_ec_dev.c index 187470c8a1f6..6d8ee3b15872 100644 --- a/drivers/platform/chrome/cros_ec_dev.c +++ b/drivers/platform/chrome/cros_ec_dev.c @@ -212,6 +212,9 @@ static const struct file_operations fops = { .release = ec_device_release, .read = ec_device_read, .unlocked_ioctl = ec_device_ioctl, +#ifdef CONFIG_COMPAT + .compat_ioctl = ec_device_ioctl, +#endif }; static void __remove(struct device *dev) |