Received: by 2002:a25:ad19:0:0:0:0:0 with SMTP id y25csp9290342ybi; Wed, 24 Jul 2019 01:28:47 -0700 (PDT) X-Google-Smtp-Source: APXvYqz2UFwfrs7NAWxsA+s9aJ0C81JTamc7dsYJ0n5YZIrIbvA89vIJhHGFZOpJ7XQf8Fidc88q X-Received: by 2002:a17:902:b713:: with SMTP id d19mr85262067pls.267.1563956926944; Wed, 24 Jul 2019 01:28:46 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1563956926; cv=none; d=google.com; s=arc-20160816; b=MJCfADtUN8Pf+/YWaIKenDZcAiR2DtdsarBWgSViwfBEDTWnBK2SQeM9bTqnxmZWgB bG/mJeVm60AVZ4mqSyg6fyirb5be39RkSgY1ZX8fORH1LZBjnO8502jFGLRVhCN9zHBE dvFYvwizDsEUvu/dp3zReTyk169ihTlDwN/owwoITUhIbmV07yo6C6QzOw4Ci5lM/Zot awDO67FrCrr7ctRMv3n8ijxxayU4+z0daBHzB3Gm0DFoZkaxcEpeK8H0suMLqg+ynUXB f1pcbcgBHVB1WLBQLfr8hEwULLZ5djH2zyNclEULNNAt0b2wNbKc4GqnaKjZiYDpxW1i xReg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:cc:to:subject :message-id:date:from:in-reply-to:references:mime-version :dkim-signature; bh=kb7eArCilWdKUvwfohxdII2qALNxjvAYl3lvEVMZ9qk=; b=M5V/MeKuCRwrHqbUxLqw0uRUS+aolp7wYg5wcolKUozzQytdbnxK6hB5Fy4jJi/1nR 650VSpuzsDMI72osYpkNoxQVKjVQf+wv2HLg9pwV2TPyqTrK3fE6zl6sPQda7p4KJS5H 8URxghaBn0uN0B+wrX5UhaaMocVnxn0hzg2tf/LChe75JWl/TDTTsljG75plKafrMaED RA8y5MuX7UHEmdBWSZJ7RTLP7FLlDTbFnEo9sBTYWmEC/1tRM0F3O4aZmkrOaGz3sDD/ xJglZkzUzj/fzbvS7nYIPRBlKmNtXJ4nl276cAE4m+gZPPDDQY4huPY84/Enu53azEXy b0Kw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@bgdev-pl.20150623.gappssmtp.com header.s=20150623 header.b=FNblimKx; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id g2si13033130plp.1.2019.07.24.01.28.32; Wed, 24 Jul 2019 01:28:46 -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=@bgdev-pl.20150623.gappssmtp.com header.s=20150623 header.b=FNblimKx; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726504AbfGXI1q (ORCPT + 99 others); Wed, 24 Jul 2019 04:27:46 -0400 Received: from mail-io1-f68.google.com ([209.85.166.68]:45714 "EHLO mail-io1-f68.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725990AbfGXI1q (ORCPT ); Wed, 24 Jul 2019 04:27:46 -0400 Received: by mail-io1-f68.google.com with SMTP id g20so87761375ioc.12 for ; Wed, 24 Jul 2019 01:27:45 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bgdev-pl.20150623.gappssmtp.com; s=20150623; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc:content-transfer-encoding; bh=kb7eArCilWdKUvwfohxdII2qALNxjvAYl3lvEVMZ9qk=; b=FNblimKx+rjoA1V3WXfUR4m6Iq3+TaxbTyU8mFKUXhELDK113890IrYfRO78n7UzKF 1IEunSPuEZujSa5rreTEM/xTlEMYSAVaMZqmwYBfDw91Ixz1Xp+yhvDaIqA3tiNwnxdF 9Cum8d7sFfluFaXFg5oazn+AGC9YF5zBQFKnlZOpgiSfMMCtrddzl1msoCzMazJV2dQB cbK/Mx2WmOr9yNYJvdNsbE37QqsbDlQgSaICPcdWK08ZFUTfEH1mPxOGNI7Rq4gZwry8 SKEKAQRBKTJQlarxH0y+ncGoVQxWWEEq0s0rhJuTpMSbjweV2/KlRsrEokct1G/ymvEx fUwg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc:content-transfer-encoding; bh=kb7eArCilWdKUvwfohxdII2qALNxjvAYl3lvEVMZ9qk=; b=KOZJtfFSkJ1dB04Ku5B0z9srXEPTs9YkjHA8IxuW2iubUfR14WF7ZSC0z6x8N8NDKM meJtQT+eVAgoFSh4k38h+cGEiFboI7x2lZtwUq9skj4VkuhJelzMrLboOWCUXy2o1o5Y BsdteliZE1erOXUZEEMXPRRVsn0lJoZFN/HdHan5A9g1XbDRx0WUI5fEhcK0IfD3KHsS ST8XdRuC69M25N1Eib88pllMxwOduWyaVX25Zk4/bRolRLgUrXQD6LK8aIpg6oFaf9OG Y9balXWUyWF5dHzFwMYOGejWUDgKLuXOGSAXAcnFEMQYWe4+6D49ViW3PxkL5uIE1OsZ HtDQ== X-Gm-Message-State: APjAAAUUIQAMyWXFi6PE9ZklDlp1bIB8ArkilViHhdPnUFLuEeqCW73E pgifFAtueoY6BxmJKl67/UthJOFOI0rmECyGJys= X-Received: by 2002:a02:5b05:: with SMTP id g5mr81387107jab.114.1563956865306; Wed, 24 Jul 2019 01:27:45 -0700 (PDT) MIME-Version: 1.0 References: <20190724082508.27617-1-brgl@bgdev.pl> In-Reply-To: <20190724082508.27617-1-brgl@bgdev.pl> From: Bartosz Golaszewski Date: Wed, 24 Jul 2019 10:27:34 +0200 Message-ID: Subject: Re: [PATCH v3 0/7] backlight: gpio: simplify the driver To: Daniel Thompson Cc: linux-sh@vger.kernel.org, Rich Felker , Linus Walleij , Bartlomiej Zolnierkiewicz , Andy Shevchenko , Yoshinori Sato , Lee Jones , Linux Kernel Mailing List , dri-devel@lists.freedesktop.org, linux-fbdev@vger.kernel.org, Bartosz Golaszewski , Jingoo Han Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org =C5=9Br., 24 lip 2019 o 10:25 Bartosz Golaszewski napisa=C5= =82(a): > > 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 v= ars > > 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(-) > > -- > 2.21.0 > Daniel, I missed your review tags - could you add them again? Thanks, Bart