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: 11021901 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 1D3FA924 for ; Fri, 28 Jun 2019 10:03:26 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 0EE8A28727 for ; Fri, 28 Jun 2019 10:03:26 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 02B6A28735; Fri, 28 Jun 2019 10:03:25 +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=-7.9 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,MAILING_LIST_MULTI,RCVD_IN_DNSWL_HI autolearn=unavailable version=3.3.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 719C328737 for ; Fri, 28 Jun 2019 10:03:25 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726539AbfF1KDF (ORCPT ); Fri, 28 Jun 2019 06:03:05 -0400 Received: from mail-wm1-f66.google.com ([209.85.128.66]:50693 "EHLO mail-wm1-f66.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726508AbfF1KDF (ORCPT ); Fri, 28 Jun 2019 06:03:05 -0400 Received: by mail-wm1-f66.google.com with SMTP id c66so8504227wmf.0 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=gywkJHwxyhLVkChbwDbjxH7QbaYUsCOFkhWMiaUA0Aa+Cvl08+M/QI/+h1vh9G4rwY 69iK4hJ0HWP4iBPEzpQpnPBXo87qhVBMinspN0Y1CLHWRoeog4uSvsblfQMbzlQzTrrl OeScmaZLxdt3OhbUKH2OMhl93rrdeylaalyKgpLeaf6w9LF8/gj2i9x0Ee3y7wZA2iw1 XrxwqElR6fQluR4eIuYs9nlkuX6ZHmQ+yF5OVdAgrq7wNbP1sYiDXS6TDewvLGyjZlwI rVfln/1xDY8cFkmuO+FzgawrBxrdzC3pRoNr/asDgAoCR+aTFDq2sc84XOBFxXGPFr26 do8Q== X-Gm-Message-State: APjAAAXfzHAJI/XG8sJjBzm0OJjYhSAsCwTK+ocA8DzZdn3/JH4Nyn0b i4u6rCO57GUuUT7qvzvLXvn48Q== 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 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 Sender: linux-sh-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-sh@vger.kernel.org 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(-) Reviewed-by: Linus Walleij