Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754241AbbGUJxg (ORCPT ); Tue, 21 Jul 2015 05:53:36 -0400 Received: from atrey.karlin.mff.cuni.cz ([195.113.26.193]:59831 "EHLO atrey.karlin.mff.cuni.cz" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752299AbbGUJxe (ORCPT ); Tue, 21 Jul 2015 05:53:34 -0400 Date: Tue, 21 Jul 2015 11:53:31 +0200 From: Pavel Machek To: Jacek Anaszewski Cc: linux-leds@vger.kernel.org, linux-kernel@vger.kernel.org, cooloney@gmail.com, rpurdie@rpsys.net, stsp@users.sourceforge.net, Andrew Lunn , Sakari Ailus Subject: Re: [PATCH/RFC 03/51] leds: Add an internal led_set_brightness_nosleep function Message-ID: <20150721095331.GC23841@amd> References: <1437122857-6765-1-git-send-email-j.anaszewski@samsung.com> <1437122857-6765-4-git-send-email-j.anaszewski@samsung.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1437122857-6765-4-git-send-email-j.anaszewski@samsung.com> User-Agent: Mutt/1.5.23 (2014-03-12) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 798 Lines: 24 > /* 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-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/