Received: by 2002:a5b:505:0:0:0:0:0 with SMTP id o5csp4245137ybp; Mon, 14 Oct 2019 01:17:12 -0700 (PDT) X-Google-Smtp-Source: APXvYqy40OIl06gicNLW3Qoo+z3GDnzgPgl1XQAyLLTiKWtM4zVc0psdEzRrR7x6p03RKnbevcVD X-Received: by 2002:a50:ee92:: with SMTP id f18mr27711940edr.56.1571041032770; Mon, 14 Oct 2019 01:17:12 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1571041032; cv=none; d=google.com; s=arc-20160816; b=lNYt6Gya4xeDaJKf2eUlOQNjZms3eHKXjJCIjyy905k85OdYSAMpf5nYhx113itFjK 43xCYNBYhvUiH7WfjnyIYNzTLqHETPs//EEmbZgy8k/4xWESFXWktZhJq9dZe1TrIzmt JcPI5xp8eOtH77ljrIYJWOm57H/hUhTjgPnbZfZg03qzuDyIHZZdWQQiKEHVHH6cFf+E uiJjv1xrJU31rYk943pNxxVsGmT00fSm8VvuJHHCvRfdNFv29AxJtU+1xF3OPop+cwoX JA+rWm+5EHQC8pb24ds32WGP8WgI09CU4svY43cO2P8Ylo/pTycGuktWYdBZGT7sagrG N8Kw== 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=t44CqyvdXypuwtzNTJ7ymJovfCkTaCpIACjq52B13FE=; b=Gk1Pxdn/41n0BRSnHmKGa9BtYtwLVfqdO1zX38d48PBJk3y4PoF3IwhuUIooBhHQ3E ytqQG3qLglPIo8Hi7tGx7LxcXSGaK6dn6qY4Ic6OWp6xe8MsqLNsOw/HyafBLDwtw37w XEN4Wx+nME3LkRo3qs9xw0AWRtTNSS2yyqQUHywgjHjPo75yE9j4tOXjvmb+JnYWH9Di 87vWoEGb3KS5cs/+Sce48AaXF4GdeFfY8oOFSJUrL2MxQOQ4pDAjzqtcG+z1moKxoBYo EZyPjNwevxRL+5ImYCiW/7bH2Y/XvrpPwYfGS3nbh3dF+25NR7Tawxp8cTY8qhAnZkXa EvvA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@bgdev-pl.20150623.gappssmtp.com header.s=20150623 header.b=JK9+D8JY; 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 k7si10590084eja.377.2019.10.14.01.16.49; Mon, 14 Oct 2019 01:17:12 -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=JK9+D8JY; 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 S1730299AbfJNIQG (ORCPT + 99 others); Mon, 14 Oct 2019 04:16:06 -0400 Received: from mail-io1-f67.google.com ([209.85.166.67]:43915 "EHLO mail-io1-f67.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729234AbfJNIQF (ORCPT ); Mon, 14 Oct 2019 04:16:05 -0400 Received: by mail-io1-f67.google.com with SMTP id v2so36058020iob.10 for ; Mon, 14 Oct 2019 01:16:05 -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=t44CqyvdXypuwtzNTJ7ymJovfCkTaCpIACjq52B13FE=; b=JK9+D8JY6bxWRDbYtmDx//zrK7L0P5ZaJiOA1u2JTy/ek0rC1FVjF5jbx8SF6OPnwM y36p/5at+welqaHGrpeciApYazXiC0HEwjfvfqfT75fnauattpvVQgA5+JjHIIw5Epe+ BFm5EzGuJgp3mNjZOZTQrvS0bqwWhoOVOOhDa7eYnntod0vH1L3sRwunV3OTS7MhWLLR bdBgCHLnxqmC6n+VjUzcb/2EDArfWypGehE2YtuxWMKu51XpQg4M8+T5JmjUUPVxT/eV scRYIVaE5rhUNQtV8KHYgGmvdShVcQqKfqdI907x6Kf447HKopmeuc22GHcH8S+3lmxp 6hfA== 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=t44CqyvdXypuwtzNTJ7ymJovfCkTaCpIACjq52B13FE=; b=fhsr0Maud5uGwIBEw+hRh+v3tZLoZnKWvjo3xd07n3Sm+AYoX9CWfQml8lrJMC+PUa EJ5qwACvngjgjhOdz7tOcntixbXj9NFQteXHaFRN/4PJhPaeZeGHGo8N77XWyRXbsDdV 40pjAQRlYSyTVN6p7E9JCmDo0ee6VFPyccFPTb5RU0vzZb3feKBzjWBWva18BaAbaK5f UXQ4Ijsjm6GeEkN29QrjdHIf8DRfVKNOJhFJf9djhdOWWvX90ZsbDg9NA3aMiH5gWIe7 kDrwSzxVxABl/lRnAOw5Orqtzad9Aj94SIPHh5t+wwdDzeMQlwhxYbJTlCfwFE/K3cp4 yB4w== X-Gm-Message-State: APjAAAVFEEW0Z7OqDrRGUaZ8skGwh7/W9nsVQUUr3uvtzypfjI1yRWhP w9L95D+woyq9KUAPy2yFZr+zGfLPrEzCcCUdsCUGpQ== X-Received: by 2002:a05:6602:248e:: with SMTP id g14mr19829138ioe.6.1571040964440; Mon, 14 Oct 2019 01:16:04 -0700 (PDT) MIME-Version: 1.0 References: <20191007033200.13443-1-brgl@bgdev.pl> <20191014081220.GK4545@dell> In-Reply-To: <20191014081220.GK4545@dell> From: Bartosz Golaszewski Date: Mon, 14 Oct 2019 10:15:53 +0200 Message-ID: Subject: Re: [PATCH v5 0/7] backlight: gpio: simplify the driver To: Lee Jones , Yoshinori Sato , Rich Felker Cc: Daniel Thompson , Jingoo Han , Bartlomiej Zolnierkiewicz , Linus Walleij , Andy Shevchenko , Jacopo Mondi , linux-sh@vger.kernel.org, Linux Kernel Mailing List , dri-devel@lists.freedesktop.org, linux-fbdev@vger.kernel.org, Bartosz Golaszewski 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 pon., 14 pa=C5=BA 2019 o 10:12 Lee Jones napisa=C5= =82(a): > > On Mon, 07 Oct 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. Patche= s > > 3-4/7 remove unused platform data fields. Last three patches contain > > additional improvements for the GPIO backlight driver while we're alrea= dy > > 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 An= dy > > - added additional two patches with minor improvements > > > > v2 -> v3: > > - in patch 7/7: used initializers to set values for pdata and dev local= vars > > > > v3 -> v4: > > - rebased on top of v5.4-rc1 > > - removed changes that are no longer relevant after commit ec665b756e6f > > ("backlight: gpio-backlight: Correct initial power state handling") > > - added patch 7/7 > > > > v4 ->V5: > > - in patch 7/7: added a comment replacing the name of the function bein= g > > pulled into probe() > > > > Bartosz Golaszewski (7): > > backlight: gpio: remove unneeded include > > 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: use a helper variable for &pdev->dev > > backlight: gpio: pull gpio_backlight_initial_power_state() into probe > > > > arch/sh/boards/mach-ecovec24/setup.c | 33 ++++-- > > I guess we're just waiting for the SH Acks now? > We've been waiting for them for a couple months now - the sh patches haven't changed since v1... Rich, Yoshinori - could you ack this so that it can go in for v5.5? Thanks, Bartosz > > drivers/video/backlight/gpio_backlight.c | 108 +++++-------------- > > include/linux/platform_data/gpio_backlight.h | 3 - > > 3 files changed, 53 insertions(+), 91 deletions(-) > > > > -- > Lee Jones [=E6=9D=8E=E7=90=BC=E6=96=AF] > Linaro Services Technical Lead > Linaro.org =E2=94=82 Open source software for ARM SoCs > Follow Linaro: Facebook | Twitter | Blog