public inbox for linux-bluetooth@vger.kernel.org
 help / color / mirror / Atom feed
From: Marcel Holtmann <marcel@holtmann.org>
To: SephirXV <sephirxv@gmail.com>
Cc: linux-bluetooth@vger.kernel.org, linux-input@vger.kernel.org
Subject: Re: [PATCH 3/3] Hidraw: ioctl to expose 'uniq'
Date: Thu, 10 Sep 2009 19:51:18 +0200	[thread overview]
Message-ID: <1252605078.8931.47.camel@violet> (raw)
In-Reply-To: <21b895620909101040vd71e774g71ee4a6a04b0f8ca@mail.gmail.com>

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



      reply	other threads:[~2009-09-10 17:51 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-09-10 17:40 [PATCH 3/3] Hidraw: ioctl to expose 'uniq' SephirXV
2009-09-10 17:51 ` Marcel Holtmann [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1252605078.8931.47.camel@violet \
    --to=marcel@holtmann.org \
    --cc=linux-bluetooth@vger.kernel.org \
    --cc=linux-input@vger.kernel.org \
    --cc=sephirxv@gmail.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox