Received: by 2002:a25:c593:0:0:0:0:0 with SMTP id v141csp5595633ybe; Tue, 10 Sep 2019 06:14:04 -0700 (PDT) X-Google-Smtp-Source: APXvYqwkLsSQS8ZDlp5rVcDPPTiT5g0wJQNi8Xs0FSyx91GBwfv+e2HH0pnl4YxdbKuYxhL9VzoW X-Received: by 2002:a17:906:400c:: with SMTP id v12mr24355770ejj.15.1568121244503; Tue, 10 Sep 2019 06:14:04 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1568121244; cv=none; d=google.com; s=arc-20160816; b=eIMBQgItk/+Ay8iweNxgWAxElKiqJPdJh2DvKgXbIepM0HGCzu6Oi8kIV7wb6GzR64 ZYgIUcwwW62PG3VIcCiZnK1aVqR0HK0ZsEQBEv+oFAcS9ojG0aCruVaSUeL4CrmA30S3 BJEJndwbjoufzo65UFX8CtcTWTL/eUuUZki/DdmYJLGfFH3PQ8NT7sTZHuxrH4UsOTx8 JAXT+gvjlAp5NjzHX8DyhJ5QNcEFw/815EILElYbLsFEOEFMIhT74VRST7FuCbypBh5n /ukSC1ucvyXyw7lWKgN+W+hB9HdDasmU8rbjWTEaReI0Sf4hC6x+ubzza86auKNjrAPI OU8g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:dkim-signature; bh=rxMynZw2F7Q544maYoP/CgIIEkMi90NAQ2LdnqF+ByE=; b=SE4U85Wg2EsxSKUpqDsdEPZ7+Ggo2lkey5ur0aG9lA1L2GgPJ/ec3G/FNAHLqZ4L5D W53rpmlZ7m20hzEiTZbabmzp0xLnr1Wicgrg9C2Wg/b6rrg3S7wszeqqZtsC2aU/KMpS BoPX2hm/EIZ7OsaK0sVls4I1WRWxYXFySxuAmhQ6evpU/y3Gl0f/xOuEXlZb0Pl/HJvA VRGVIXLTqJp9cVfhxBA92kCuDoZNj1IBXqlZ8TnO9vFcjDC6eOxFgaTVxA8Xmtjx53Qg KTsyM2v6X0dQoRYURoDnMcNavPn9iYgP5bafqpeyq9prt6bdyLPKsUSzVDl6kEuz9fCL XU0g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=PP3G1VGp; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id j38si11658118ede.374.2019.09.10.06.13.39; Tue, 10 Sep 2019 06:14:04 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=PP3G1VGp; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1731093AbfIJLjg (ORCPT + 99 others); Tue, 10 Sep 2019 07:39:36 -0400 Received: from mail-wr1-f66.google.com ([209.85.221.66]:43061 "EHLO mail-wr1-f66.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1730304AbfIJLjg (ORCPT ); Tue, 10 Sep 2019 07:39:36 -0400 Received: by mail-wr1-f66.google.com with SMTP id q17so14798014wrx.10 for ; Tue, 10 Sep 2019 04:39:34 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to:user-agent; bh=rxMynZw2F7Q544maYoP/CgIIEkMi90NAQ2LdnqF+ByE=; b=PP3G1VGp5vvb8+v3qhss/sZ8dRo2B7iDpAFhzvLaFAGTodqeiFl2dp0M3y35k/WrZC Bjz/XwLZxSJJ1wP3rVVqUOimycZg9BXErFrX8eq/Mu+yjMGZ9iOlv7ZJA0qDRr0EZBIj Ywt2Z0QlyMyRc2eHuLdiiowoAcjzP1yDIKSOPcB1L7jMBcQPgPy4KaGD64ZoijBbaMCm ojHbXSRGQjlFOwvjXkYZEpJTxtHa8zx54fqvw5n+lTxKtBjJyrhUaNvlfA2GKYXomTRJ pyva6P6BvmuyId2mj0sdIDvk0ZBfWERjsFryms9TD2cY+76DUv37b+YdNWUv2n2RpXvS F5RQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to:user-agent; bh=rxMynZw2F7Q544maYoP/CgIIEkMi90NAQ2LdnqF+ByE=; b=f0afgInwVpgghf1FVaRci81VCH2WRqqUtQbDE0RJ/l8L6GJrw59Slv7yoa+O9+1xkR DkcTmAna4Ehajgil5CBQTCoOYPaFWD7ixkvxazeOwD9BDoxoLcWWCsWDgftvKbyY/XyG YvIGTucsgwUEvHqmw9os9yePHgMTncaWAM450EwTvMblrTX8eKwAint+WQ/MaHcTW8ff Ji+w7hA0tM1ty6f7e05Fs2oR7W3H3FcWeiyr3mVH3aokfDIR9sE9J2hoKzsKoqe04cUs RYg6Ktg3jAmU0KPUdjfpNOct/1MYa+HlXMBGkjI8Mcb+Sq77Stmruj8oVcohouJFhRuL nt+w== X-Gm-Message-State: APjAAAWWqGA+K/UMGvqv0YYDLj7dEPXvO4Tc0bVYuKySh7RqKJ6GkfIv Lk8njn583Fm8YgqKMQbFzvmEcw== X-Received: by 2002:a05:6000:12:: with SMTP id h18mr24912506wrx.156.1568115574148; Tue, 10 Sep 2019 04:39:34 -0700 (PDT) Received: from holly.lan (cpc141214-aztw34-2-0-cust773.18-1.cable.virginm.net. [86.9.19.6]) by smtp.gmail.com with ESMTPSA id a190sm3861146wme.8.2019.09.10.04.39.33 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 10 Sep 2019 04:39:33 -0700 (PDT) Date: Tue, 10 Sep 2019 12:39:31 +0100 From: Daniel Thompson To: Jean-Jacques Hiblot Cc: jacek.anaszewski@gmail.com, pavel@ucw.cz, robh+dt@kernel.org, mark.rutland@arm.com, lee.jones@linaro.org, dmurphy@ti.com, linux-leds@vger.kernel.org, linux-kernel@vger.kernel.org, dridevel@lists.freedesktop.org, tomi.valkeinen@ti.com Subject: Re: [PATCH v5 4/4] backlight: add led-backlight driver Message-ID: <20190910113931.4epumos2yaublv2t@holly.lan> References: <20190910105946.23057-1-jjhiblot@ti.com> <20190910105946.23057-5-jjhiblot@ti.com> <20190910112622.iflmknh5qplbfoyu@holly.lan> <8c80495a-440e-05c6-22c8-cf05d4f6b611@ti.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <8c80495a-440e-05c6-22c8-cf05d4f6b611@ti.com> User-Agent: NeoMutt/20180716 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, Sep 10, 2019 at 01:38:18PM +0200, Jean-Jacques Hiblot wrote: > > On 10/09/2019 13:26, Daniel Thompson wrote: > > > > > endmenu > > > diff --git a/drivers/video/backlight/Makefile b/drivers/video/backlight/Makefile > > > index 63c507c07437..2a67642966a5 100644 > > > --- a/drivers/video/backlight/Makefile > > > +++ b/drivers/video/backlight/Makefile > > > @@ -57,3 +57,4 @@ obj-$(CONFIG_BACKLIGHT_TPS65217) += tps65217_bl.o > > > obj-$(CONFIG_BACKLIGHT_WM831X) += wm831x_bl.o > > > obj-$(CONFIG_BACKLIGHT_ARCXCNN) += arcxcnn_bl.o > > > obj-$(CONFIG_BACKLIGHT_RAVE_SP) += rave-sp-backlight.o > > > +obj-$(CONFIG_BACKLIGHT_LED) += led_bl.o > > > diff --git a/drivers/video/backlight/led_bl.c b/drivers/video/backlight/led_bl.c > > > new file mode 100644 > > > index 000000000000..a72456e11fb9 > > > --- /dev/null > > > +++ b/drivers/video/backlight/led_bl.c > > > @@ -0,0 +1,264 @@ > > > +// SPDX-License-Identifier: GPL-2.0 > > > +/* > > > + * Copyright (C) 2015-2019 Texas Instruments Incorporated - http://www.ti.com/ > > > + * Author: Tomi Valkeinen > > > + * > > > + * Based on pwm_bl.c > > > + */ > > > + > > > +#include > > > +#include > > Maybe this is a nitpick but it is one I have now raised three times and > > I don't recall any response, what symbols from this header are used in > > this file? > > > > AFAICT everything defined in this header includes the string "gpio" and > > that string doesn't appear anywhere in the file (except this line). > > > > > > > +#include > > > +#include > > > +#include > > > +#include > > Come to think of it, are you sure you need this include? devm_kzalloc() > > doesn't comes from this file. > > > > > > > +#define BKL_FULL_BRIGHTNESS 255 > > This is unused. Please remove. > > > > > > Other than that, looks good! > > Thanks for the quick review. I forgot to cleanup the headers. I'll fix that > now I felt I owed it to this patch series after my performance so far this dev cycle! Daniel.