Linux Input/HID development
 help / color / mirror / Atom feed
* Re: [PATCH 3/3] Hidraw: ioctl to expose 'uniq'
       [not found] <21b895620909101040vd71e774g71ee4a6a04b0f8ca@mail.gmail.com>
@ 2009-09-10 17:51 ` Marcel Holtmann
  0 siblings, 0 replies; only message in thread
From: Marcel Holtmann @ 2009-09-10 17:51 UTC (permalink / raw)
  To: SephirXV; +Cc: linux-bluetooth, linux-input

Hi Christopher,

> Simple, deterministic way of getting uniq field bound to hidrawN
> files. Flame me on this one, so long as I get some feedback I can use.
> 
> Signed-off-by: Christopher Olson <sephirxv@gmail.com>
> 
> ---
> 
> --- drivers/hid/hidraw.c        2009-09-10 10:32:28.000000000 -0500
> +++ drivers/hid/hidraw.c.1      2009-09-10 10:32:13.000000000 -0500
> @@ -264,6 +264,12 @@ static long hidraw_ioctl(struct file *fi
>                                         ret = -EFAULT;
>                                 break;
>                         }
> +               case HIDIOCGRAWINFO + 1:        //HIDIOCG_UNIQ
> +                       {
> +                               if (copy_to_user(user_arg, dev->hid->uniq, 64))
> +                                       ret = -EFAULT;
> +                               break;
> +                       }
>                 default:
>                         ret = -ENOTTY;
>         }

wrong mailing list to begin with.

Regards

Marcel



^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2009-09-10 17:51 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
     [not found] <21b895620909101040vd71e774g71ee4a6a04b0f8ca@mail.gmail.com>
2009-09-10 17:51 ` [PATCH 3/3] Hidraw: ioctl to expose 'uniq' Marcel Holtmann

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox