lkml.org 
[lkml]   [2010]   [Mar]   [10]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: private field in led_classdev?
Greg KH, le Tue 09 Mar 2010 18:54:11 -0800, a écrit :
> On Sun, Mar 07, 2010 at 03:31:12PM +0100, Samuel Thibault wrote:
> > Would there be an objection to adding a void *private field to the
> > led_classdev struct? It would be a lot less burden for the input
> > key board leds support for finding out the keyboard device from the
> > brightness_set callback, as each device may have a long series of leds,
> > not just a fixed number of them.
>
> What's wrong with using the private pointer in the struct device
> instead?

Ah, right. In my case there is a struct device corresponding to the
actual input device. I hadn't realized that since registering a led
creates a new device, I have another private pointer which I can use.

Samuel
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/

\
 
 \ /
  Last update: 2010-03-10 10:57    [W:0.072 / U:1.860 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site