From mboxrd@z Thu Jan 1 00:00:00 1970 From: Pali =?utf-8?B?Um9ow6Fy?= Subject: Re: [PATCH v2 3/4] platform: x86: dell-*: Call led_notify_brightness_change on kbd brightness change Date: Mon, 24 Oct 2016 16:10:41 +0200 Message-ID: <20161024141041.GG12154@pali> References: <20161023194652.24335-1-hdegoede@redhat.com> <20161023194652.24335-3-hdegoede@redhat.com> <20161024133459.GD12154@pali> <48df1537-4f76-6c7b-cb50-9c1aeaf41b6c@redhat.com> <20161024135101.GF12154@pali> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit Return-path: Received: from mail-wm0-f41.google.com ([74.125.82.41]:36935 "EHLO mail-wm0-f41.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S938894AbcJXOKo (ORCPT ); Mon, 24 Oct 2016 10:10:44 -0400 Content-Disposition: inline In-Reply-To: Sender: linux-leds-owner@vger.kernel.org List-Id: linux-leds@vger.kernel.org To: Hans de Goede Cc: Darren Hart , Matthew Garrett , Richard Purdie , Jacek Anaszewski , platform-driver-x86@vger.kernel.org, linux-leds@vger.kernel.org On Monday 24 October 2016 15:57:41 Hans de Goede wrote: > Hmm, the 0000 table contains: > > /* Key code is followed by keyboard illumination level */ > { KE_IGNORE, 0xe00c, { KEY_KBDILLUMTOGGLE } }, > > We could use the same keycode in the 0011 table for kbd brightness events and then do: > > if (event->keycode == KEY_KBDILLUMTOGGLE) > dell_smbios_kbd_backlight_brightness_changed, NULL); > > I will send an updated version using this. Yea, that is great! -- Pali Rohár pali.rohar@gmail.com