Received: by 2002:a25:ad19:0:0:0:0:0 with SMTP id y25csp7451744ybi; Mon, 22 Jul 2019 13:29:57 -0700 (PDT) X-Google-Smtp-Source: APXvYqzi7GLEc+sBlhvb7cUdrxyAxUbrV7ijECeM/S/Y+NoJPPbEBph1lVDn7VFDGPuxR+aPqNaw X-Received: by 2002:a63:7b18:: with SMTP id w24mr72682150pgc.328.1563827396934; Mon, 22 Jul 2019 13:29:56 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1563827396; cv=none; d=google.com; s=arc-20160816; b=uiGYWxT24sVUwcwcBi+Rs+JSC1hYyfE7JgYWTlzUAfnRBzIo2cl+124dGBNRIliS9b 3xyGx5xkv69OZIBSa4a5veJEl6hs4j6uCZ/WoKUFW4cth3NdM/ZjwtM4bRYASVTToky2 T5h01tYbW8+/gUPBnzf7AVdZUaFYp6R6VGb4Xi7WYUKk2TG7lrluSyyzlphALVxPW/Tq RHXfwE3B2/59MDjWgL1iLsn6tcdWVfU/OSpu13F6bxvAeOp1VoXEbOT9oBkPiJjLiUtS AyCWJzt3+arSFRe7S7M32ISPA+VIwsyN4cQ9IBEFBtApsYkNEaXEa1xMOWUmI8p/fgvu JkeA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:organization:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date; bh=McFl/H3efupuPSxy76y0dE5xkpyQamUrOSrxmfZILbo=; b=kMuK5HuB47oJTQKfrzGqQdvYXUrYNdZi6S2PHPm2IjXWuXVTjJ6Xb9z0iNDF9Sbnpp 6WzKkwQqu+DjA6L2qUctCdw3SpKYnFOMKKz0P+99GW91oAXLFlrBwa7uizPJ2R0JodVG FKQtM09FqV3KxiaTgfWzvD/H/I631BozcZkuJE8+IBWfoEDiF0wrIHIHCpgUb2gR2z2a SwOCl58E4ok1blTjZmFiihnEx3A69D3eLtUSDnMvCEemCTq/6giHaeBzV7mb0+Dv4+xJ b5uyKHQ1W6KNKFeS9Xct9kt+VnQVPrwKFM7Y1jmrxxI2qIzhULnhZm3dWoEPTbTTuNDI M1Hg== ARC-Authentication-Results: i=1; mx.google.com; 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=fail (p=NONE sp=NONE dis=NONE) header.from=intel.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id z26si9496575pgl.562.2019.07.22.13.29.41; Mon, 22 Jul 2019 13:29:56 -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; 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=fail (p=NONE sp=NONE dis=NONE) header.from=intel.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1730507AbfGVQJ4 (ORCPT + 99 others); Mon, 22 Jul 2019 12:09:56 -0400 Received: from mga09.intel.com ([134.134.136.24]:17126 "EHLO mga09.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726236AbfGVQJ4 (ORCPT ); Mon, 22 Jul 2019 12:09:56 -0400 X-Amp-Result: UNSCANNABLE X-Amp-File-Uploaded: False Received: from orsmga001.jf.intel.com ([10.7.209.18]) by orsmga102.jf.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 22 Jul 2019 09:09:55 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.64,295,1559545200"; d="scan'208";a="252950881" Received: from smile.fi.intel.com (HELO smile) ([10.237.68.145]) by orsmga001.jf.intel.com with ESMTP; 22 Jul 2019 09:09:52 -0700 Received: from andy by smile with local (Exim 4.92) (envelope-from ) id 1hpaso-00075z-Qx; Mon, 22 Jul 2019 19:09:50 +0300 Date: Mon, 22 Jul 2019 19:09:50 +0300 From: Andy Shevchenko To: Bartosz Golaszewski Cc: Yoshinori Sato , Rich Felker , Lee Jones , Daniel Thompson , Jingoo Han , Bartlomiej Zolnierkiewicz , Linus Walleij , 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 v2 0/7] backlight: gpio: simplify the driver Message-ID: <20190722160950.GA9224@smile.fi.intel.com> References: <20190722150302.29526-1-brgl@bgdev.pl> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20190722150302.29526-1-brgl@bgdev.pl> Organization: Intel Finland Oy - BIC 0357606-4 - Westendinkatu 7, 02160 Espoo User-Agent: Mutt/1.10.1 (2018-07-13) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, Jul 22, 2019 at 05:02:55PM +0200, 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 For uncommented ones Reviewed-by: Andy Shevchenko > > v1 -> v2: > - rebased on top of v5.3-rc1 and adjusted to the recent changes from Andy > - added additional two patches with minor improvements > > 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 | 87 ++++++-------------- > include/linux/platform_data/gpio_backlight.h | 3 - > 3 files changed, 48 insertions(+), 75 deletions(-) > > -- > 2.21.0 > -- With Best Regards, Andy Shevchenko