From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752051AbaLFEbZ (ORCPT ); Fri, 5 Dec 2014 23:31:25 -0500 Received: from bombadil.infradead.org ([198.137.202.9]:49529 "EHLO bombadil.infradead.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751172AbaLFEbY (ORCPT ); Fri, 5 Dec 2014 23:31:24 -0500 Date: Wed, 3 Dec 2014 10:00:20 -0800 From: Darren Hart To: Pali =?iso-8859-1?Q?Roh=E1r?= Cc: Matthew Garrett , platform-driver-x86@vger.kernel.org, linux-kernel@vger.kernel.org, libsmbios-devel@lists.us.dell.com, Srinivas_G_Gowda@dell.com, Michael_E_Brown@dell.com, Gabriele Mazzotta , Dan Carpenter Subject: Re: [PATCH v3] platform: x86: dell-laptop: Add support for keyboard backlight Message-ID: <20141203180018.GA20370@vmdeb7> References: <1415967813-7223-1-git-send-email-pali.rohar@gmail.com> <1417780411-5859-1-git-send-email-pali.rohar@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <1417780411-5859-1-git-send-email-pali.rohar@gmail.com> User-Agent: Mutt/1.5.23 (2014-03-12) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, Dec 05, 2014 at 12:53:31PM +0100, Pali Rohár wrote: > This patch adds support for configuring keyboard backlight settings on supported > Dell laptops. It exports kernel leds interface and uses Dell SMBIOS tokens or > keyboard class interface. > > With this patch it is possible to set: > * keyboard backlight level > * timeout after which will be backlight automatically turned off > * input activity triggers (keyboard, touchpad, mouse) which enable backlight > * ambient light settings > > Settings are exported via sysfs: > /sys/class/leds/dell::kbd_backlight/ > > Code is based on newly released documentation by Dell in libsmbios project. > > Thanks to Dan Carpenter who reported bug about unpredictable results in > quirks->kbd_timeouts for loop. His fix adds needs_kbd_timeouts flag to > quirk structure to indicate if kbd_timeouts array is empty or not. > > Signed-off-by: Pali Rohár > Signed-off-by: Gabriele Mazzotta > Cc: Dan Carpenter Applied to testing with minor English corrections to the new comments. Thank you Pali. -- Darren Hart Intel Open Source Technology Center