From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1757022AbZBLI6l (ORCPT ); Thu, 12 Feb 2009 03:58:41 -0500 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1753073AbZBLI6c (ORCPT ); Thu, 12 Feb 2009 03:58:32 -0500 Received: from atrey.karlin.mff.cuni.cz ([195.113.26.193]:39739 "EHLO atrey.karlin.mff.cuni.cz" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752896AbZBLI6b (ORCPT ); Thu, 12 Feb 2009 03:58:31 -0500 Date: Thu, 12 Feb 2009 09:58:14 +0100 From: Pavel Machek To: Greg KH Cc: linux-kernel@vger.kernel.org, stable@kernel.org, Justin Forbes , Zwane Mwaikambo , "Theodore Ts'o" , Randy Dunlap , Dave Jones , Chuck Wolber , Chris Wedgwood , Michael Krufky , Chuck Ebbert , Domenico Andreoli , Willy Tarreau , Rodrigo Rubira Branco , Jake Edge , Eugene Teo , torvalds@linux-foundation.org, akpm@linux-foundation.org, alan@lxorguk.ukuu.org.uk, Corentin Chary , Len Brown , Thomas Renninger Subject: Re: [patch 33/41] asus-laptop: Fix the led behavior with value > 1 Message-ID: <20090212085814.GA1386@ucw.cz> References: <20090204184029.881610776@mini.kroah.org> <20090204184654.GH25246@kroah.com> <20090210202429.GC1382@ucw.cz> <20090210205752.GA3044@suse.de> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20090210205752.GA3044@suse.de> User-Agent: Mutt/1.5.18 (2008-05-17) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org > > > From: Corentin Chary > > > > > > commit e3deda9c87ac5eef2b5d18cd0b5511370979ca26 upstream. > > > > > > Fix http://bugzilla.kernel.org/show_bug.cgi?id=11613 . > > > > > > Signed-off-by: Corentin Chary > > > Signed-off-by: Len Brown > > > Cc: Thomas Renninger > > > Signed-off-by: Greg Kroah-Hartman > > > > > > --- > > > drivers/misc/asus-laptop.c | 2 +- > > > 1 file changed, 1 insertion(+), 1 deletion(-) > > > > > > --- a/drivers/misc/asus-laptop.c > > > +++ b/drivers/misc/asus-laptop.c > > > @@ -351,7 +351,7 @@ static void write_status(acpi_handle han > > > static void object##_led_set(struct led_classdev *led_cdev, \ > > > enum led_brightness value) \ > > > { \ > > > - object##_led_wk = value; \ > > > + object##_led_wk = (value > 0) ? 1 : 0; \ > > > > "= !!value" is standard way to do that.... for unsigned value. > > No dispute here, but that's what is upstream :) No dispute there, I just hope original author fixes it in the upstream on one sunny day :). -- (english) http://www.livejournal.com/~pavelmachek (cesky, pictures) http://atrey.karlin.mff.cuni.cz/~pavel/picture/horses/blog.html