Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1760338AbcCDVtL (ORCPT ); Fri, 4 Mar 2016 16:49:11 -0500 Received: from mail-wm0-f51.google.com ([74.125.82.51]:35659 "EHLO mail-wm0-f51.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1759341AbcCDVtJ (ORCPT ); Fri, 4 Mar 2016 16:49:09 -0500 Subject: Re: [PATCH] leds: Add Chrome OS keyboard backlight LEDs driver To: Dmitry Torokhov References: <20160303234646.GA17641@dtor-ws> <1457080729.18482.6.camel@gmail.com> <56D957A0.7070300@samsung.com> <20160304191322.GA17145@dtor-ws> <56D9F63C.5030608@gmail.com> <20160304205955.GG17145@dtor-ws> Cc: Jacek Anaszewski , Evan McClain , Richard Purdie , Bryan Wu , Simon Que , Olof Johansson , Duncan Laurie , Guenter Roeck , linux-kernel@vger.kernel.org, linux-leds@vger.kernel.org From: Jacek Anaszewski Message-ID: <56DA02BA.4020603@gmail.com> Date: Fri, 4 Mar 2016 22:48:42 +0100 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:38.0) Gecko/20100101 Icedove/38.4.0 MIME-Version: 1.0 In-Reply-To: <20160304205955.GG17145@dtor-ws> Content-Type: text/plain; charset=windows-1252; format=flowed Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1818 Lines: 51 On 03/04/2016 09:59 PM, Dmitry Torokhov wrote: > On Fri, Mar 04, 2016 at 09:55:24PM +0100, Jacek Anaszewski wrote: >> On 03/04/2016 08:13 PM, Dmitry Torokhov wrote: >>> On Fri, Mar 04, 2016 at 10:38:40AM +0100, Jacek Anaszewski wrote: >>>> Hi Evan, >>>> >>>> On 03/04/2016 09:38 AM, Evan McClain wrote: >>>>> On Thu, 2016-03-03 at 15:46 -0800, Dmitry Torokhov wrote: >>>>>> From: Simon Que >>>>>> >>>>>> This is a driver for ACPI-based keyboard backlight LEDs found on >>>>>> Chromebooks. The driver locates \\_SB.KBLT ACPI device and exports >>>>>> backlight as "chromeos::kbd_backlight" LED class device in sysfs. >>>>> >>>>> Was it ever decided where this driver should live? I was planning on >>>>> submitting to platform/chrome since most keyboard backlights seem to >>>>> live over there but I don't think I got a response. >>>>> >>>> >>>> It hasn't been decided yet. I can take it, but could you submit one more >>>> version, without >>>> >>>> 'owner = THIS_MODULE' in struct platform_driver keyboard_led_driver ? >>>> >>>> It is redundant, because the core will do it. >>>> >>>> Also the line with devm_kzalloc has over 80 characters. >>> >>> Also: >>> >>> - preferably use sizeof(*cdev) instead of sizeof(struct ...) >>> - do not check cdev->flags & LED_SUSPENDED in >>> keyboard_led_set_brightness() as it is not going to be called when led >>> device is suspended anyway >>> - change the MODULE_LICENSE from "GPL v2" to "GPL" as to match the >> >> I can see "either version 2 of the License" in the license notice. > >>From module.h: > > * "GPL" [GNU Public License v2 or later] > * "GPL v2" [GNU Public License v2] > > leds-chromeos-keyboard is GPL v2+ so module license should be "GPL". That's surprising. Thanks for spotting this. -- Best Regards, Jacek Anaszewski