Merge branch 'cec-defines' into for-linus
authorDmitry Torokhov <dmitry.torokhov@gmail.com>
Sun, 19 Jun 2016 00:25:08 +0000 (17:25 -0700)
committerDmitry Torokhov <dmitry.torokhov@gmail.com>
Sun, 19 Jun 2016 00:25:08 +0000 (17:25 -0700)
Let's bring in HDMI CEC defines to ease merging CEC support in the next
merge window.

1  2 
drivers/input/misc/uinput.c

index 79338f4bdecb68ec52b690ad7bc9db668e3f1868,abe1a927b3328d22af925832f7b8c7c0bc76f2bb..65ebbd11170221c8d0180958040c1d1c2f939dda
@@@ -664,7 -664,7 +664,7 @@@ struct uinput_ff_upload_compat 
  static int uinput_ff_upload_to_user(char __user *buffer,
                                    const struct uinput_ff_upload *ff_up)
  {
-       if (INPUT_COMPAT_TEST) {
+       if (in_compat_syscall()) {
                struct uinput_ff_upload_compat ff_up_compat;
  
                ff_up_compat.request_id = ff_up->request_id;
  static int uinput_ff_upload_from_user(const char __user *buffer,
                                      struct uinput_ff_upload *ff_up)
  {
-       if (INPUT_COMPAT_TEST) {
+       if (in_compat_syscall()) {
                struct uinput_ff_upload_compat ff_up_compat;
  
                if (copy_from_user(&ff_up_compat, buffer,
@@@ -981,15 -981,9 +981,15 @@@ static long uinput_ioctl(struct file *f
  }
  
  #ifdef CONFIG_COMPAT
 +
 +#define UI_SET_PHYS_COMPAT    _IOW(UINPUT_IOCTL_BASE, 108, compat_uptr_t)
 +
  static long uinput_compat_ioctl(struct file *file,
                                unsigned int cmd, unsigned long arg)
  {
 +      if (cmd == UI_SET_PHYS_COMPAT)
 +              cmd = UI_SET_PHYS;
 +
        return uinput_ioctl_handler(file, cmd, arg, compat_ptr(arg));
  }
  #endif