Received: by 2002:a5b:505:0:0:0:0:0 with SMTP id o5csp4243184ybp; Mon, 14 Oct 2019 01:15:30 -0700 (PDT) X-Google-Smtp-Source: APXvYqwvQN0Pw4Bh7FYSVvEGXntXl2gEDIlhdB8/SawgLYURKHARSs29xNASV9H6C4v92L8jx2xd X-Received: by 2002:a17:906:cc87:: with SMTP id oq7mr27786310ejb.123.1571040929957; Mon, 14 Oct 2019 01:15:29 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1571040929; cv=none; d=google.com; s=arc-20160816; b=PwlmCrAxGUq5riRZFMYZYeOS9916eqpoHs03TMyQ8klcxvUrOPaQHTuQBn9Re/7tTb SRAfzOyPt9VuR1KFGKU6e3JJPxyugwBhU+q2wh7claRaIOd3O7uzECwAKE15xrZ8+TUh Rhjcz4ovY/VO5aMaL6DGsPDAQTrksXjSQwLO0K5GVT3Ss4thR8Lp7zRiHBGo0LrCVkjl p4T9GfU5lb8a5DIddKi2tJGMRt2uBCumx05CceoTPSDDGsomJ8iCoE9AxmbxYpQ+Q9NZ Z68w3EDXfna9+mfnJcCLf/snn1DlHqM77e91v+JiIg/KajTGKpKV7FfzUxukBBV+904T u8BQ== 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=+deUZXsERBoIwuF8w37rkTqOJuJ0YNPkmp+VXhLAItk=; b=N6Flbwa2a+P0ZW2asV7MycJ8wTElDH5y/Me+cIhKjjShKqf4mPY1ImqH70y190/1O5 24ITYJY8bT4MYFbBdMRflbHV/QYuI94HGVHyKwHanA5ARs/d4PlciVPr7M6iz8vkS36C +xwD9aCGBAB+pK1DTQPM+7SMjt9IeX+rqpXo11mD4xvlLPYkDpbEh5wkt77VdNcES3ZJ dMcUOQzLHbu9/K24V/RJzQQI/B2tUwUCaL43ysLdxpIeg6PL2ktsFnH60U1XUsLRPtZc b6Yf4U1c/oCgaz8/Jvu5BfXCTD5Gm3HMQvUM+5Px4IqIg2Vw3hBNsHKET6el23pk2kGt pnhQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=LD7yH42N; 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 b4si10943765edk.331.2019.10.14.01.15.05; Mon, 14 Oct 2019 01:15:29 -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=LD7yH42N; 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 S1725936AbfJNIM0 (ORCPT + 99 others); Mon, 14 Oct 2019 04:12:26 -0400 Received: from mail-wm1-f68.google.com ([209.85.128.68]:51654 "EHLO mail-wm1-f68.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729234AbfJNIMZ (ORCPT ); Mon, 14 Oct 2019 04:12:25 -0400 Received: by mail-wm1-f68.google.com with SMTP id 7so16193412wme.1 for ; Mon, 14 Oct 2019 01:12:24 -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=+deUZXsERBoIwuF8w37rkTqOJuJ0YNPkmp+VXhLAItk=; b=LD7yH42N59JCCaLRFfXRFerOH8rkSLiF+LkhxjTWD8eNTeij5IMQn1woDobFZE2iCw T7PRQ5NqIOzxbidAmveDF27g/uRI4cYMXqKO/PiT6vh6oSEh5FGBE6Qpt93GBWqnaEGH lmBXwIYnLtN3udyc40lT+rQqfc2okHAYI2K6oBmuKA/w4jSTcX3jV3q0ApsAULz+4gmY VlAEmK5rk0W33jfbswlq2l3XI2DuvEvHpgXpf26c0IXqlDSe7GMgnINcA03sbbgoQM7N T1vcoiZ56aqBt+IXEp1ThrluAiAOm+Bm/XI852XhW4XdnC238NJb/RqDGBbxXyCEc5Yf dWwQ== 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=+deUZXsERBoIwuF8w37rkTqOJuJ0YNPkmp+VXhLAItk=; b=Wm7WG3h0qpqlicOWgxpWIfLmyOFkqY+ulHgF9st/Jp1oO375tHyVl9TT77yYzNRYzG uNNeyICwlXyDJfdtTA87Z4tgDDV5ZsX8HIAqp6KtpQgILzA7jJZcj14NLcgdKIGWOfRi 8ah1J3lidaVAMqW8e+CWifcZP5rbTbtUjws4q1yWAv2ZbOOnHh7Au2uqs4NBONJKOGKS vUskr7xN0U0DWbu9MssqiFATP+Mq/FnLxy2aOvkkMb/CTZgBtLa8SVZNb4gzeXHqtbCM wWMBhGmtfW9PpSNXxMrpPruxrgiLYFHkW1j6Ho77/YmPrGNRrBlOER6aU+Nlwd+nk8sS Prkg== X-Gm-Message-State: APjAAAXzJyonQzywvDAJt0no1f1Ffhj22OJSyTSW8tuSvWOT+KoqM9r+ uzNTj4wOlYOpXR98Khe24CRH/w== X-Received: by 2002:a7b:ce89:: with SMTP id q9mr13965770wmj.2.1571040743235; Mon, 14 Oct 2019 01:12:23 -0700 (PDT) Received: from dell ([2.27.167.11]) by smtp.gmail.com with ESMTPSA id c9sm16087692wrt.7.2019.10.14.01.12.21 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Mon, 14 Oct 2019 01:12:22 -0700 (PDT) Date: Mon, 14 Oct 2019 09:12:20 +0100 From: Lee Jones To: Bartosz Golaszewski Cc: Yoshinori Sato , Rich Felker , Daniel Thompson , Jingoo Han , Bartlomiej Zolnierkiewicz , Linus Walleij , Andy Shevchenko , Jacopo Mondi , 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 v5 0/7] backlight: gpio: simplify the driver Message-ID: <20191014081220.GK4545@dell> References: <20191007033200.13443-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: <20191007033200.13443-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 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. 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 > > 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 being > 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? > drivers/video/backlight/gpio_backlight.c | 108 +++++-------------- > include/linux/platform_data/gpio_backlight.h | 3 - > 3 files changed, 53 insertions(+), 91 deletions(-) > -- Lee Jones [李琼斯] Linaro Services Technical Lead Linaro.org │ Open source software for ARM SoCs Follow Linaro: Facebook | Twitter | Blog