Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S964904AbbHKJjA (ORCPT ); Tue, 11 Aug 2015 05:39:00 -0400 Received: from mailout3.samsung.com ([203.254.224.33]:39760 "EHLO mailout3.samsung.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S964861AbbHKJiy (ORCPT ); Tue, 11 Aug 2015 05:38:54 -0400 X-AuditID: cbfee61b-f79706d000001b96-10-55c9c2ac39aa 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 11/57] Documentation: leds: Add description of brightness_set* ops Date: Tue, 11 Aug 2015 11:37:24 +0200 Message-id: <1439285890-27329-12-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+t9jQd21h06GGjzax2Rx/u4hZoujOycy WfRefc5ocXnXHDaLrW/WMVrcPXWUzWL3rqesFp+2fGOy6OybxuLA6bFz1l12j3knAz127vjM 5LFn/g9Wj74tqxg9Vqz+zu7RdKqd1ePzJrkAjigum5TUnMyy1CJ9uwSujEXbfrMXnOGvmDij jbmBcQ93FyMnh4SAicTOh92sELaYxIV769lAbCGBWYwS699FdDFyAdk/GSX6VrxgBkmwCRhK /HzxmqmLkYNDREBOYueZSpAaZoF/jBKzXj0FaxYWiJZ41t0AZrMIqEpcPfeECcTmFfCU+P+l jw2kV0JAQWLOJBuQMCdQ+PrzRYwQez0kjs9uYpvAyLuAkWEVo0RqQXJBcVJ6rlFearlecWJu cWleul5yfu4mRnAgPpPewXh4l/shRgEORiUeoAUnQ4VYE8uKK3MPMUpwMCuJ8BZOBQrxpiRW VqUW5ccXleakFh9ilOZgURLn1TfZFCokkJ5YkpqdmlqQWgSTZeLglGpgTNSaulP66+o/idE7 peVVVnYL/+lfe/3C5isNGmqGXUJiNUkLWVsYJsr45kis3pnCHVi9p135gfDJx2+C7gQnSYQ+ mdHlU2uQHRIh6rgkOWB3j6iETXMYQ1T3/vNcF4ovCjs/T3E+I/mOt765ZcKblf7KsbNm+TxR /PA39lbXFPF9qhYP/hkrsRRnJBpqMRcVJwIAUhlIa0ACAAA= Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 2194 Lines: 52 This patch adds description of brightness_set and a recently introduced brightness_set_nonblocking op. Signed-off-by: Jacek Anaszewski Cc: Bryan Wu Cc: Andrew Lunn Cc: Sakari Ailus Cc: Pavel Machek Cc: Stas Sergeev --- Documentation/leds/leds-class.txt | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) diff --git a/Documentation/leds/leds-class.txt b/Documentation/leds/leds-class.txt index 62261c0..fde8fef 100644 --- a/Documentation/leds/leds-class.txt +++ b/Documentation/leds/leds-class.txt @@ -52,6 +52,26 @@ above leaves scope for further attributes should they be needed. If sections of the name don't apply, just leave that section blank. +Brightness setting callbacks +============================ + +LED subsystem core exposes two function pointers for setting brightness: + + - brightness_set : Intended for drivers that may set brightness in + a blocking way. For a long time this was the only + op for setting brightness and it was drivers' + responsibility to assure that it will not block the + caller. With the new approach drivers are required to set + LED_BRIGHTNESS_BLOCKING flag, when using this op, to make + LED core aware that it should call it from a work queue + task, when brightness is set with led_set_brightness API. + In case synchronous operation is needed it should be + explicitly requested with led_set_brightness_sync API. + + - brightness_set_nonblocking : Intended for drivers that set brightness in + a non-blocking way. + + Hardware accelerated blink of LEDs ================================== -- 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/