LKML Archive on
help / color / mirror / Atom feed
From: "Kay Sievers" <>
To: "Adam Nielsen" <>
Cc: "Oliver Neukum" <>,
	"LKML Mailinglist" <>,
Subject: Re: Can you use the USB HID interface within a driver?
Date: Sat, 1 Nov 2008 15:52:26 +0100	[thread overview]
Message-ID: <> (raw)
In-Reply-To: <>

On Sat, Nov 1, 2008 at 13:32, Adam Nielsen <> wrote:
>>> Or perhaps someone could point me in the direction of a USB HID driver
>>> that does things "properly" already?
>> Please post "lsusb -v" for your device.
> Here's the output.  I don't think any of the "class" drivers are suitable,
> except as templates for interfacing with the main HID code...I think...

I think, a real in-kernel driver for HID Power devices, which exports
the device as a "power_supply" device to userspace, would be nice.

That way, USB UPS's which support the HID Power devices:

would show up like any other battery and AC connector and userspace
could handle all of them without any specialized code:
  ls -1 /sys/class/power_supply/BAT0/


  reply	other threads:[~2008-11-01 14:52 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-11-01 11:44 Adam Nielsen
2008-11-01 12:08 ` Oliver Neukum
2008-11-01 12:32   ` Adam Nielsen
2008-11-01 14:52     ` Kay Sievers [this message]
2008-11-01 20:26 ` Jiri Kosina
2008-11-01 23:20   ` Adam Nielsen
2008-11-02  6:43     ` Driver for new hid class (was: Can you use the USB HID interface within a driver?) Adam Nielsen
2008-11-02 12:14       ` Driver for new hid class Jiri Slaby

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:

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

  git send-email \ \ \ \ \ \ \
    --subject='Re: Can you use the USB HID interface within a driver?' \

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).