On Tue, 14 Oct 2008, Oliver Neukum wrote: > > > I found an error in the hid autosuspend patches. Keyboards can have more > > > than one LED. Is there a way to query the HID layer about active LEDs? > > you can either get the information from the underlying input device, or > > you can use hidinput_find_field() to find the fields of EV_LED type, and > > obtain the value from the offset that this function gives you. > What is the prefered way of doing that? There seems to be no hid_get_field(). Yes, there is no such function yet. If you need it in autosuspend patch and implement it, I'll happily merge it. Thanks, -- Jiri Kosina SUSE Labs -- To unsubscribe from this list: send the line "unsubscribe linux-input" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html