Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S934138AbbHKJii (ORCPT ); Tue, 11 Aug 2015 05:38:38 -0400 Received: from mailout4.samsung.com ([203.254.224.34]:40247 "EHLO mailout4.samsung.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S934068AbbHKJie (ORCPT ); Tue, 11 Aug 2015 05:38:34 -0400 X-AuditID: cbfee61b-f79706d000001b96-b3-55c9c28d4a65 From: Jacek Anaszewski To: linux-leds@vger.kernel.org Cc: linux-kernel@vger.kernel.org, cooloney@gmail.com, rpurdie@rpsys.net, stsp@users.sourceforge.net, Jacek Anaszewski , Andrew Lunn , Sakari Ailus , Pavel Machek Subject: [PATCH/RFC v5 01/57] leds: Add brightness_set_nonblocking op Date: Tue, 11 Aug 2015 11:37:14 +0200 Message-id: <1439285890-27329-2-git-send-email-j.anaszewski@samsung.com> X-Mailer: git-send-email 1.7.9.5 In-reply-to: <1439285890-27329-1-git-send-email-j.anaszewski@samsung.com> References: <1439285890-27329-1-git-send-email-j.anaszewski@samsung.com> X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFlrLLMWRmVeSWpSXmKPExsVy+t9jQd3eQydDDVZMN7U4f/cQs8XRnROZ LHqvPme0uLxrDpvF1jfrGC3unjrKZrF711NWi09bvjFZdPZNY3Hg9Ng56y67x7yTgR47d3xm 8tgz/werR9+WVYweK1Z/Z/doOtXO6vF5k1wARxSXTUpqTmZZapG+XQJXxrpNr1gLTnNWPHqw iKmB8SN7FyMnh4SAicTb/atZIGwxiQv31rN1MXJxCAnMYpTYs3UpC4Tzk1Hi7OZjYB1sAoYS P1+8Zupi5OAQEZCT2HmmEqSGWeAfo8SsV0/ZQOLCAq4SE/p0QcpZBFQltu35wQRi8wp4SFw5 cgCsVUJAQWLOJBuQMKeAp8T154sYQWwhoJLjs5vYJjDyLmBkWMUokVqQXFCclJ5rlJdarlec mFtcmpeul5yfu4kRHIjPpHcwHt7lfohRgINRiYdXwPNkqBBrYllxZe4hRgkOZiUR3sKpQCHe lMTKqtSi/Pii0pzU4kOM0hwsSuK8+iabQoUE0hNLUrNTUwtSi2CyTBycUg2M/DOX3Jp2N8Tp vXK18cv2/517Z9i9/FZxoiGQrdPTeqUIi+rTyaavm/IEPit7vvNNlJt99uSu5mr9z08mPcs5 Mb9t3qe0Hc/nmjLERrvMfvf/yIt76eXzS17OmMLKqF4rLWrfFDZNVlrYXvPMlINMOxuinYVe RLCb/FxhcufIcx9n+aRLr/f7K7EUZyQaajEXFScCAEozZAlAAgAA Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1441 Lines: 36 This patch adds a new brightness_set_nonblocking op to the LED subsystem. The op is intended for drivers that set brightness in a non-blocking way, i.e. they neither sleep nor use delays while setting brightness. Signed-off-by: Jacek Anaszewski Cc: Bryan Wu Cc: Andrew Lunn Cc: Sakari Ailus Cc: Pavel Machek Cc: Stas Sergeev --- include/linux/leds.h | 3 +++ 1 file changed, 3 insertions(+) diff --git a/include/linux/leds.h b/include/linux/leds.h index b122eea..c32f1b8 100644 --- a/include/linux/leds.h +++ b/include/linux/leds.h @@ -53,6 +53,9 @@ struct led_classdev { /* Must not sleep, use a workqueue if needed */ void (*brightness_set)(struct led_classdev *led_cdev, enum led_brightness brightness); + /* Intended for drivers that set brightness in a non-blocking way */ + void (*brightness_set_nonblocking)(struct led_classdev *led_cdev, + enum led_brightness brightness); /* * Set LED brightness level immediately - it can block the caller for * the time required for accessing a LED device register. -- 1.7.9.5 -- 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/