From patchwork Fri Jun 28 10:02:49 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Bartosz Golaszewski X-Patchwork-Id: 11024573 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id 3102D13B1 for ; Sun, 30 Jun 2019 18:26:48 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 1FFCF2843B for ; Sun, 30 Jun 2019 18:26:48 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 14521285EA; Sun, 30 Jun 2019 18:26:48 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-5.2 required=2.0 tests=BAYES_00,MAILING_LIST_MULTI, RCVD_IN_DNSWL_MED autolearn=ham version=3.3.1 Received: from gabe.freedesktop.org (gabe.freedesktop.org [131.252.210.177]) (using TLSv1.2 with cipher DHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id CBF1E2843B for ; Sun, 30 Jun 2019 18:26:47 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id 0B04989D02; Sun, 30 Jun 2019 18:26:15 +0000 (UTC) X-Original-To: dri-devel@lists.freedesktop.org Delivered-To: dri-devel@lists.freedesktop.org Received: from mail-wm1-x341.google.com (mail-wm1-x341.google.com [IPv6:2a00:1450:4864:20::341]) by gabe.freedesktop.org (Postfix) with ESMTPS id E003E6E8C0 for ; Fri, 28 Jun 2019 10:03:04 +0000 (UTC) Received: by mail-wm1-x341.google.com with SMTP id g135so8491961wme.4 for ; Fri, 28 Jun 2019 03:03:04 -0700 (PDT) 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=SL8EuResNgz8DNu0CBxnAOURsgYzRX1P1PDHsTFdc629Fs4pF8QU9Bm6QsnHOeIBNY hKDv8ZNwobzyu7LlTwxLD+mMJ8H3lKQVjaqxXkPpK3ek9qkq+VgWC27qpXvjGyO2GW5R oOgmIqp34zmk6mxEkWjcjxQ+RJlCcoHrRLMI5+3C1aGnMWkCWSNYrRGxP0b3RNc/pCWF GL6BCHf7GPtdzWkFGscCH8RXMVYK/2kuj+x4cb/Uwb+UOr44RJCos05TgbLInFXR8ZQ1 84cgSKjaj8YVZnQbMNftyPjWAV3db8ra4drxHatRXjNgQQfUKH7UpD/J/7oq3/yw579V bsgA== X-Gm-Message-State: APjAAAVb8GUPEEgdsMuDY575AWkhDWNBgQ94XBmUxgcV4lA9i1uRE530 7qW+RbTmUTMatbjN13Mz56RxkA== X-Google-Smtp-Source: APXvYqwhcFL6tQPvDpqRgEZ6o9MP/TYJoYCPuvCjDURwYT5TSOIYtMdW/bnH9RbLDIM8UWBC5Gscrg== 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 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 X-Mailman-Approved-At: Sun, 30 Jun 2019 18:26:11 +0000 X-Mailman-Original-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-BeenThere: dri-devel@lists.freedesktop.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: Direct Rendering Infrastructure - Development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Bartosz Golaszewski , linux-fbdev@vger.kernel.org, linux-kernel@vger.kernel.org, dri-devel@lists.freedesktop.org, linux-sh@vger.kernel.org Errors-To: dri-devel-bounces@lists.freedesktop.org Sender: "dri-devel" X-Virus-Scanned: ClamAV using ClamSMTP 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(-)