Received: by 2002:a25:f815:0:0:0:0:0 with SMTP id u21csp3109120ybd; Fri, 28 Jun 2019 03:03:28 -0700 (PDT) X-Google-Smtp-Source: APXvYqwN2WbwASy8tl9VxZsapeqXQoNWvqFNk1Ab25GelnFv4LP/KSxLePIFcC21EyXxbZtB3J7n X-Received: by 2002:a63:d944:: with SMTP id e4mr8353295pgj.261.1561716208310; Fri, 28 Jun 2019 03:03:28 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1561716208; cv=none; d=google.com; s=arc-20160816; b=WKcpj1PKoMD70CbWFBDwIz9QNCRn4cRyJ4gdSVSogzB0t2tVT9Y6M8miIo28KDdVxy lFKrZSNWr7Gwzf9NS+9r5fNG6S1FViQOs0HltF8HC1aR/++wgqk4FvIYbqpM1mRxrE5I pd//g6vVlDUSOxqrrR3X7bN3VCwJqqX5lLqoHTnBwWB2SqjYMB9wou5plC5vD4VUZWb/ Goo0scOm/BXQUDGoDPnxdiM9Z2Be3vh9Qeswqv2p2q7fNgyAm2Idh4iWbJVHUKxqipln 1AjlF6FSy1+8C3JxO9CdTitds0Hb+FdhdH07oG7di+teVhaSd/+QK3TYt0rffVINM1iV vikQ== 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:mime-version :message-id:date:subject:cc:to:from:dkim-signature; bh=tkIKqohD1pWyDDJZwRAR+FLcGS0BmuKJrepunlcK85k=; b=roaoUeYjdPnhZG6kp63JxM04QT5JfrX730PH2F6A/P3w6ie4/Wag8YqcvJrm0Bx99t uLhIes/3qeb/rm7Z2PCNBO+An6QMJjrOKC/E+aq28MtZc33dEP4DZkZ5rF2IiFmAOWCh MUcwE+Rm+CJuPeYhFTzio4FWT0inwBWEf1lnzoAni0VvQm0PtSojwvuGlJB4uIocYI+c P1hxCGnGU9lIXX0gYNAiJrHRU/Z3zoLmLyD76xUmq4dIaIDkgH7CjvhHJJc1JaQpmbz8 7qTL8sfGaNHpIrsPtmGHyvi/QlOzLb5AIoZMuMmYeXTYko8YpYgeldKESwx+HbmL1gSu z40A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@bgdev-pl.20150623.gappssmtp.com header.s=20150623 header.b="wqzma/Sf"; 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 f4si1799087plb.38.2019.06.28.03.03.10; Fri, 28 Jun 2019 03:03:28 -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="wqzma/Sf"; 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 S1726565AbfF1KDF (ORCPT + 99 others); Fri, 28 Jun 2019 06:03:05 -0400 Received: from mail-wm1-f67.google.com ([209.85.128.67]:51720 "EHLO mail-wm1-f67.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726502AbfF1KDF (ORCPT ); Fri, 28 Jun 2019 06:03:05 -0400 Received: by mail-wm1-f67.google.com with SMTP id 207so8490106wma.1 for ; Fri, 28 Jun 2019 03:03:03 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bgdev-pl.20150623.gappssmtp.com; s=20150623; h=from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=tkIKqohD1pWyDDJZwRAR+FLcGS0BmuKJrepunlcK85k=; b=wqzma/SfPs0SNGTJrk5pSZ/CDzjE4TIsL1pUirIMru6Dd+k6VggDOtK8vTsC1hGLBl LkxecZDEuCSeCquLFAOPUsgoDKzm5faSmD1FnVCT7mAIophBAoibWoibsUUid8aXk7z1 ReoaPn8iXq3u3x4tzSeci7yYCYibuOp7i9fH0JjNnW3tsNULnII/S3nTg5NJTPxm6n+L XQCn7bneeug8DsDsEwH6nFbR7aM+12R56vcL/hhU8Afv3LItBO/gwcnghPvcETXmMDOX reWrBAZ8fCMca+WmYEPAZ1tOiCj8kYRTNDsyKdttCYERhyT/eh212yuCPYf61oXc6OCd SFIg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=tkIKqohD1pWyDDJZwRAR+FLcGS0BmuKJrepunlcK85k=; b=D+nyeGFjBJC8OHE+yue79hCEAAj97YG6Nc+CBaqS4+UqOL2ORYDdlAepvtUrl4EPOS fxGQp3uYm/WK+1zrzv13w2F5VIZjUqtE2d+w/Pzdrcz4hTmsPKRQ9TgY9aAezS37eAcr mNM77yqh/ffKKpKD6qTa2dc1nHs8PSV800ii5vuyjlfnXC9spH1KRbIXMvoxXytPkmCQ lcZp2HqyDA1p5859VnDSrlznFtMpDTopx7uWaOCh0P4FG5/hMAMjUgYi78pPW1lBvwcu YlsyunLzX5KJjinwE186ApFVY+F1BJsKtYilIwRqkSm8PCPa8QGQxjGuQ23ZGoAaAn4X OrbA== X-Gm-Message-State: APjAAAU1WVcGY92CLB7A3fh/hKk2z7ivRZ564BH+u4WdQjKyzYheVACx TVwG3FL8ZTZjShFt0qLK4sNcEw== X-Received: by 2002:a1c:a848:: with SMTP id r69mr6526253wme.12.1561716183015; Fri, 28 Jun 2019 03:03:03 -0700 (PDT) Received: from debian-brgl.home ([2a01:cb1d:af:5b00:6d6c:8493:1ab5:dad7]) by smtp.gmail.com with ESMTPSA id l124sm1628874wmf.36.2019.06.28.03.03.01 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Fri, 28 Jun 2019 03:03:02 -0700 (PDT) From: Bartosz Golaszewski To: Yoshinori Sato , Rich Felker , Lee Jones , Daniel Thompson , Jingoo Han , Bartlomiej Zolnierkiewicz , Linus Walleij Cc: linux-sh@vger.kernel.org, linux-kernel@vger.kernel.org, dri-devel@lists.freedesktop.org, linux-fbdev@vger.kernel.org, Bartosz Golaszewski Subject: [PATCH RFT 0/4] backlight: gpio: simplify the driver Date: Fri, 28 Jun 2019 12:02:49 +0200 Message-Id: <20190628100253.8385-1-brgl@bgdev.pl> X-Mailer: git-send-email 2.21.0 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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 sets up all the required structures in the board file, the second modifies the backlight driver, the third and fourth remove the leftovers. This series depends on the three first patches from [1]. I don't have access to this HW but hopefully this works. Only compile tested. [1] https://lkml.org/lkml/2019/6/25/900 Bartosz Golaszewski (4): 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 arch/sh/boards/mach-ecovec24/setup.c | 33 ++++++++++---- drivers/video/backlight/gpio_backlight.c | 46 ++++++-------------- include/linux/platform_data/gpio_backlight.h | 3 -- 3 files changed, 38 insertions(+), 44 deletions(-) -- 2.21.0