From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1763449AbdAEW0I (ORCPT ); Thu, 5 Jan 2017 17:26:08 -0500 Received: from mail-lf0-f67.google.com ([209.85.215.67]:33800 "EHLO mail-lf0-f67.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754538AbdAEWYo (ORCPT ); Thu, 5 Jan 2017 17:24:44 -0500 Subject: Re: [PATCH v2] leds: add LED_ON brightness as boolean value To: Andi Shyti , Richard Purdie , Pavel Machek References: <20170105023412.26472-1-andi.shyti@samsung.com> Cc: Jaechul Lee , linux-leds@vger.kernel.org, linux-kernel@vger.kernel.org, Andi Shyti From: Jacek Anaszewski Message-ID: Date: Thu, 5 Jan 2017 23:17:28 +0100 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:45.0) Gecko/20100101 Icedove/45.4.0 MIME-Version: 1.0 In-Reply-To: <20170105023412.26472-1-andi.shyti@samsung.com> Content-Type: text/plain; charset=windows-1252 Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Andi, Thanks for the update. Applied. On 01/05/2017 03:34 AM, Andi Shyti wrote: > Some devices do not handle the led brightness or simply don't > care about it. Conceptually said devices want to just switch on > or off the led. It is useless in this case to have a 255 range > of brightness, while just having an LED_ON and LED_OFF improves > the boolean meaning of the led status. > > Signed-off-by: Andi Shyti > Acked-by: Pavel Machek > --- > Hi, > > Thanks Pavel and Jacek for your review. > > Differences from V1 > - used explicit assignement of LED_ON in the enum > - added Pavel's ack > > Andi > > include/linux/leds.h | 1 + > 1 file changed, 1 insertion(+) > > diff --git a/include/linux/leds.h b/include/linux/leds.h > index 569cb531094c..bb50d0151e75 100644 > --- a/include/linux/leds.h > +++ b/include/linux/leds.h > @@ -27,6 +27,7 @@ struct device; > > enum led_brightness { > LED_OFF = 0, > + LED_ON = 1, > LED_HALF = 127, > LED_FULL = 255, > }; > -- Best regards, Jacek Anaszewski