Received: by 2002:a25:c593:0:0:0:0:0 with SMTP id v141csp470479ybe; Mon, 2 Sep 2019 04:40:14 -0700 (PDT) X-Google-Smtp-Source: APXvYqz3DMkHhLDUNTREWiEI7oP2fok1GkajEK+juXkblHnN3JkR0qYVUITA6fVtzvnmvXNvzElj X-Received: by 2002:a17:90a:338b:: with SMTP id n11mr13029568pjb.132.1567424414722; Mon, 02 Sep 2019 04:40:14 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1567424414; cv=none; d=google.com; s=arc-20160816; b=I4/3Dk+b8DZa3MG57AUIufbyoc/NqHpjUDVnpnOXyWmV2uM0K11aqhTI6w0/kfYcfk z0ZAovcCoLZMS4o9lOzWfuz26w8m9JFS9+Zvz5LzXOvT7xJsghnLzhNP06VmnkEM1MPE WWgA1/ou4sqtIr04MdZc7EpaB/oQT7IbbJJ7HDrurNt+Z/iJ2A5WBBJmCLbFtizK9twv YC/hZJZLnStKDGcfq+rgA3cK44m53TwejoHcJSHEv8ZlSFbhd6TxxQoGp4x9DrFLm3kc fZII4k2uOnh51q6ULY8sKJ7REjck0CMYbIxqdn/dbVd9rWjlNUuuu83B0rZ7+tezRaGM ZGCg== 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-transfer-encoding:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=r8AwJSmMaHIEN05eTIkJ4SIO7fhuuHmNGUIve5f+2G0=; b=el3LPF4ahJ39qgx12KHekmLw9Ng/IvntVy64egImlgxAO8ji43cISZkXapjL/UhWoV qI8eTrsZGIYoUqh7YSxJaOpL6NMtz6KcJDvFtvCkOSc+VXisEk4p3PLZ2HMYf1m5zPw2 jcr6iwNdtr1QtjnG2grArXUlL3B5wRafohXAcMvgycqNS2RAIhtEi0C6i+aECeDF/6ug wBkwEhIl3NYjoTQjlH3Cd539DGEvQALZazl4Fnjd6C1h/mKbwXTARzdSglc5wUo3Bk6X 74hNPOsjRNopIKe133/mNkFwgOsfJ1csUYhPXphM7QyKUhyCjNgbc710rovsOinPJjco nKCg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=Bt1VuYPs; 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 o76si807259pfg.246.2019.09.02.04.39.44; Mon, 02 Sep 2019 04:40:14 -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=Bt1VuYPs; 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 S1731092AbfIBJbl (ORCPT + 99 others); Mon, 2 Sep 2019 05:31:41 -0400 Received: from mail-wm1-f65.google.com ([209.85.128.65]:35593 "EHLO mail-wm1-f65.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1730446AbfIBJbl (ORCPT ); Mon, 2 Sep 2019 05:31:41 -0400 Received: by mail-wm1-f65.google.com with SMTP id n10so3143020wmj.0 for ; Mon, 02 Sep 2019 02:31:40 -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:content-transfer-encoding:in-reply-to :user-agent; bh=r8AwJSmMaHIEN05eTIkJ4SIO7fhuuHmNGUIve5f+2G0=; b=Bt1VuYPsJX1pxqRR6NEEzZF0cAq3QqZSMeTnegdO8wAJVFRb/Jr0Ly4BgdgOysPSWb IZVVibSQpS0gOBIr0OUQUsZUwFVf97qS4uto28oZHVLLEWbqLvQ/+C9xlwxydZuudplm 81UaLsko8zsLIGQXBw/VgDV7HZkHqUWUkEUWbs1UvWxFqMMsnxf+J2SceviM8fe7Ws7D QYXzlFLYLoRmtUnbMXQLOVXJVHdGzIcoMqNyU2TC4Psa6PULLHTj9RdtGxZtxSu3bTkm cnU2J3ip/ZBkcrqgo6YoEsJv/uU/p04nUgNpCOBqikubhWlYP2WpFFKnrv4ETvEbbXKA p5Dg== 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:content-transfer-encoding :in-reply-to:user-agent; bh=r8AwJSmMaHIEN05eTIkJ4SIO7fhuuHmNGUIve5f+2G0=; b=c+CVNcdKNpMrutGNEMuKX1aHnotfAsSCkY2TucfndGXhgfVG8qbdVnAhmlEEK36TRU 3AmNdPXAeXHNHp1OGHEfUOURHjLEH3ASjhhEo8L/+wOlefXs/IdCX/bhfNGW8ifBxsjZ oX0huXnj9qnwDMPWKK4LPwvDai8B5wErhBuQQhTr5DVTA9fyRVQZi6F4iaFZIfezUgok qAPsdwqRV7Ev7P4R5qKrIp/9D1DKtjsELJQSTZQQ+tIgKWlPQGIU1lfqXZEDxf+swpPi rLPphqddIT9PgZ5eKRhrYPwB6MN3djztgRLJwmP+2BiLgPk54nJOsDaoUOpLeHvzJiP9 CPSA== X-Gm-Message-State: APjAAAXQabKRFBypoZXUmBhflkF8RQjx1q8sxtNyRwJoGEa8ukjCeHrx OO0Xgd5cQjBfrpfXoC7i5lQpsA== X-Received: by 2002:a1c:1f89:: with SMTP id f131mr33287131wmf.140.1567416699794; Mon, 02 Sep 2019 02:31:39 -0700 (PDT) Received: from dell ([95.147.198.93]) by smtp.gmail.com with ESMTPSA id v186sm33030150wmb.5.2019.09.02.02.31.38 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Mon, 02 Sep 2019 02:31:39 -0700 (PDT) Date: Mon, 2 Sep 2019 10:31:37 +0100 From: Lee Jones To: Bartosz Golaszewski Cc: Yoshinori Sato , Rich Felker , Daniel Thompson , Jingoo Han , Bartlomiej Zolnierkiewicz , Linus Walleij , Andy Shevchenko , linux-sh@vger.kernel.org, linux-kernel@vger.kernel.org, dri-devel@lists.freedesktop.org, linux-fbdev@vger.kernel.org, Bartosz Golaszewski Subject: Re: [PATCH v3 0/7] backlight: gpio: simplify the driver Message-ID: <20190902093137.GI32232@dell> References: <20190724082508.27617-1-brgl@bgdev.pl> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <20190724082508.27617-1-brgl@bgdev.pl> User-Agent: Mutt/1.9.4 (2018-02-28) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, 24 Jul 2019, Bartosz Golaszewski wrote: > From: Bartosz Golaszewski > > While working on my other series related to gpio-backlight[1] I noticed > that we could simplify the driver if we made the only user of platform > data use GPIO lookups and device properties. This series tries to do > that. > > The first patch adds all necessary data structures to ecovec24. Patch > 2/7 unifies much of the code for both pdata and non-pdata cases. Patches > 3-4/7 remove unused platform data fields. Last three patches contain > additional improvements for the GPIO backlight driver while we're already > modifying it. > > I don't have access to this HW but hopefully this works. Only compile > tested. > > [1] https://lkml.org/lkml/2019/6/25/900 > > v1 -> v2: > - rebased on top of v5.3-rc1 and adjusted to the recent changes from Andy > - added additional two patches with minor improvements > > v2 -> v3: > - in patch 7/7: used initializers to set values for pdata and dev local vars > > Bartosz Golaszewski (7): > sh: ecovec24: add additional properties to the backlight device > backlight: gpio: simplify the platform data handling > sh: ecovec24: don't set unused fields in platform data > backlight: gpio: remove unused fields from platform data > backlight: gpio: remove dev from struct gpio_backlight > backlight: gpio: remove def_value from struct gpio_backlight > backlight: gpio: use a helper variable for &pdev->dev > > arch/sh/boards/mach-ecovec24/setup.c | 33 ++++++-- > drivers/video/backlight/gpio_backlight.c | 82 +++++--------------- > include/linux/platform_data/gpio_backlight.h | 3 - > 3 files changed, 44 insertions(+), 74 deletions(-) Can you collect all your Acks and re-submit please? -- Lee Jones [李琼斯] Linaro Services Technical Lead Linaro.org │ Open source software for ARM SoCs Follow Linaro: Facebook | Twitter | Blog