From patchwork Sat Sep 19 22:15:35 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: =?utf-8?q?Marek_Beh=C3=BAn?= X-Patchwork-Id: 255371 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-6.9 required=3.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI, SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED,USER_AGENT_GIT autolearn=no autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 0B2A9C43469 for ; Sat, 19 Sep 2020 22:15:55 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id C116E2311B for ; Sat, 19 Sep 2020 22:15:54 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (1024-bit key) header.d=nic.cz header.i=@nic.cz header.b="M+YV9S1l" Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726710AbgISWPx (ORCPT ); Sat, 19 Sep 2020 18:15:53 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:39486 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726617AbgISWPx (ORCPT ); Sat, 19 Sep 2020 18:15:53 -0400 Received: from mail.nic.cz (mail.nic.cz [IPv6:2001:1488:800:400::400]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 16548C0613CE; Sat, 19 Sep 2020 15:15:52 -0700 (PDT) Received: from dellmb.labs.office.nic.cz (unknown [IPv6:2001:1488:fffe:6:cac7:3539:7f1f:463]) by mail.nic.cz (Postfix) with ESMTP id 5A00A140925; Sun, 20 Sep 2020 00:15:49 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=nic.cz; s=default; t=1600553749; bh=zCbpIM/C4TLd7NaidOQ92vSkSL8MTP7HW502znmDqcE=; h=From:To:Date; b=M+YV9S1lx1aeX/qUFLBHxb6+4fmWRQQ1JJpCisjFf5kH3RcScov34gpsJAssT114w Wye+CM+hQzE9ZWdWkU++pzUVGZQHVzgm8lCIzg2f5SgvF0q7BGFgPQ+2XtUmetRU0J 11JNGPwYTvV/a11/MgrROdYkM5Wo5U15tCjdbIC4= From: =?utf-8?q?Marek_Beh=C3=BAn?= To: linux-leds@vger.kernel.org Cc: Pavel Machek , Dan Murphy , =?utf-8?q?Ma?= =?utf-8?q?rek_Beh=C3=BAn?= , NeilBrown , Linus Walleij , "H . Nikolaus Schaller" , Tony Lindgren , Adam Ford , Viresh Kumar , Rob Herring , devicetree@vger.kernel.org Subject: [PATCH leds + devicetree 00/13] leds: tca6507 cleanup Date: Sun, 20 Sep 2020 00:15:35 +0200 Message-Id: <20200919221548.29984-1-marek.behun@nic.cz> X-Mailer: git-send-email 2.26.2 MIME-Version: 1.0 X-Spamd-Bar: / X-Virus-Scanned: clamav-milter 0.102.2 at mail X-Virus-Status: Clean Precedence: bulk List-ID: X-Mailing-List: linux-leds@vger.kernel.org Hi Pavel, this is a cleanup of tca6507 LED driver. This series applies on your for-next, but: - the last patch should be added only after LED core parses `linux,default-trigger` property - there is DT binding change and device tree change, I am not sure who should apply those patches Mainly we are getting rid of platform data, but also a potential bug is being fixed and bindings are DT being aligned. Marek Cc: NeilBrown Cc: Linus Walleij Cc: H. Nikolaus Schaller Cc: Tony Lindgren Cc: Adam Ford Cc: Viresh Kumar Cc: Rob Herring Cc: devicetree@vger.kernel.org Marek BehĂșn (13): leds: tca6507: Absorb platform data leds: tca6507: use fwnode API instead of OF dt-bindings: leds: tca6507: convert to YAML ARM: dts: omap3: gta04: rename LED controlled subnodes leds: tca6507: do not set GPIO names leds: tca6507: cosmetic change: use helper variable leds: tca6507: register LEDs and GPIOs immediately after parsing leds: tca6507: remove binding comment leds: tca6507: use devres for LED and gpiochip registration leds: tca6507: let gpiolib set gpiochip's of_node leds: tca6507: fail on reg value conflict leds: tca6507: set registers to zero before LEDs/GPIOs registration leds: tca6507: use struct led_init_data when registering .../devicetree/bindings/leds/tca6507.txt | 49 ---- .../devicetree/bindings/leds/ti,tca6507.yaml | 134 ++++++++++ arch/arm/boot/dts/omap3-gta04.dtsi | 12 +- drivers/leds/leds-tca6507.c | 234 ++++++------------ include/linux/leds-tca6507.h | 21 -- 5 files changed, 217 insertions(+), 233 deletions(-) delete mode 100644 Documentation/devicetree/bindings/leds/tca6507.txt create mode 100644 Documentation/devicetree/bindings/leds/ti,tca6507.yaml delete mode 100644 include/linux/leds-tca6507.h base-commit: a0e550dc351ab5fabe8ea86e45b974494a0a6bf8 Tested-by: H. Nikolaus Schaller Reviewed-by: Linus Walleij