> /* Set LED brightness level */ > - /* Must not sleep, use a workqueue if needed */ > + /* Must not sleep if the driver sets LED_BRIGHTNESS_FAST flag */ > void (*brightness_set)(struct led_classdev *led_cdev, > enum led_brightness brightness); > /* Have fun improving static checkers to check for this kind of crazy semantics. NAK. Just use two callbacks, one of them always NULL. Pavel -- (english) http://www.livejournal.com/~pavelmachek (cesky, pictures) http://atrey.karlin.mff.cuni.cz/~pavel/picture/horses/blog.html -- To unsubscribe from this list: send the line "unsubscribe linux-leds" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html