From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S964812AbcCDVYP (ORCPT ); Fri, 4 Mar 2016 16:24:15 -0500 Received: from mail-wm0-f66.google.com ([74.125.82.66]:36509 "EHLO mail-wm0-f66.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1759649AbcCDVXF (ORCPT ); Fri, 4 Mar 2016 16:23:05 -0500 From: Heiner Kallweit Subject: [PATCH v7 4/5] leds: core: document ABI change for RGB extension To: Jacek Anaszewski Cc: linux-leds@vger.kernel.org, Benjamin Tissoires , linux-usb@vger.kernel.org, linux-kernel@vger.kernel.org Message-ID: <56D9FAC2.8090703@gmail.com> Date: Fri, 4 Mar 2016 22:14:42 +0100 User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:38.0) Gecko/20100101 Thunderbird/38.6.0 MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Document the ABI change in Documentation/ABI/testing/sysfs-class-led. Signed-off-by: Heiner Kallweit --- v7: - separated from patch 3 --- Documentation/ABI/testing/sysfs-class-led | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/Documentation/ABI/testing/sysfs-class-led b/Documentation/ABI/testing/sysfs-class-led index 3646ec8..20357d5 100644 --- a/Documentation/ABI/testing/sysfs-class-led +++ b/Documentation/ABI/testing/sysfs-class-led @@ -7,6 +7,17 @@ Description: have hardware brightness support so will just be turned on for non-zero brightness settings. The value is between 0 and /sys/class/leds//max_brightness. + If a driver uses the RGB LED feature then this attribute is + interpreted as a HSV color model value: + <0000000F> + Usage of the least byte is identical to monochrome mode. + Saturation can be 0-255 and hue 0-251 (Colour circle is mapped + to 0-252). If hue and saturation both are 0 the current colour + is preserved and only the brightness is set. This ensures + backwards compatibility with monochrome mode, e.g. for + led_set_brightness() calls from triggers. + Flag F enables setting hue and saturation even if both are 0. + For details and examples see Documentation/leds/leds-class.txt What: /sys/class/leds//max_brightness Date: March 2006 -- 2.7.1