From patchwork Thu Nov 14 13:30:04 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Dan Murphy X-Patchwork-Id: 179409 Delivered-To: patch@linaro.org Received: by 2002:a92:38d5:0:0:0:0:0 with SMTP id g82csp11063386ilf; Thu, 14 Nov 2019 05:31:38 -0800 (PST) X-Google-Smtp-Source: APXvYqyy8rfGmVOjQE7KqKP9d0vQE7bQjIifP4C2QlBb3sutei0JmpW3Soqd4YgufRMxQkcpr24e X-Received: by 2002:a17:906:1fd5:: with SMTP id e21mr8163845ejt.320.1573738298037; Thu, 14 Nov 2019 05:31:38 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1573738298; cv=none; d=google.com; s=arc-20160816; b=k1fgzLOU/VVbRay9n+hnQdeaYG8VUYff0/uhqJ75YDwgiU2fEMZEJP6Q6L3bSwGO0j hEYY5vIlZbrDPqvJNWlwqoGNjFhJW8pnA7JLKSOu9Hh8lALt4bBADSA4w4RDxFfhTD5s 2RdQJrLftTID9+x176vjmW5tYaNPkbGEcjcEGHDsST2LyUeCi3bv8mVlWgeQa08m+WFN b7lfCRzme5kdWzaWFCiRVIFnQFMqWdoP29EAVyfyzTo2dBTfEfYNTLZ+wflSx+nqIYDn 0AHLSBjMoDrAehEP9IHtMHhrrzUGah2r/lyoYE8V28FvDI1w0q6GENw2s6Y8Uxc0h8SH pNuQ== 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=8/wDtcVdVvs/3Umxwe1T1r5l+aLgUb89v9tZMmz7QOg=; b=02Igs1gcOsDCzJ36QqYRZTawdCEX+QHFKj1B8domKowZMiZV3oczQ0k2LMJkOPFkLy R1NAOn6m3qdt4RbFkEkdRYvDlVYWQdahUsqKNo0kPTNENY9kvw6o94jIAdjUMJZhbamk VsJxAaM1c3ybePyfx8eprg8ULz53wC1zdo6Jti7kEC7+7vq0cSMEhnxoFdIHO+6v9THZ V1XL0gFeSOR5E1zvWZvwunAKSK673TN5J/jCN2Z6rT+RcNDlxXIVSOFHW6s8OdiTpkI2 9nq+9HvwCQXIIWFMpEfgWwLxRAf5XTmTbrVxydSA5gk0jIRVechl+U8D47vTwlDUYeZa 2rrg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@ti.com header.s=ti-com-17Q1 header.b=RwnHzEIw; spf=pass (google.com: best guess record for domain of linux-leds-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-leds-owner@vger.kernel.org; dmarc=pass (p=QUARANTINE sp=NONE dis=NONE) header.from=ti.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id b5si1522309edj.310.2019.11.14.05.31.37; Thu, 14 Nov 2019 05:31:38 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-leds-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=@ti.com header.s=ti-com-17Q1 header.b=RwnHzEIw; spf=pass (google.com: best guess record for domain of linux-leds-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-leds-owner@vger.kernel.org; dmarc=pass (p=QUARANTINE sp=NONE dis=NONE) header.from=ti.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726973AbfKNNbh (ORCPT + 1 other); Thu, 14 Nov 2019 08:31:37 -0500 Received: from lelv0142.ext.ti.com ([198.47.23.249]:40536 "EHLO lelv0142.ext.ti.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726528AbfKNNbg (ORCPT ); Thu, 14 Nov 2019 08:31:36 -0500 Received: from lelv0266.itg.ti.com ([10.180.67.225]) by lelv0142.ext.ti.com (8.15.2/8.15.2) with ESMTP id xAEDVVOg103614; Thu, 14 Nov 2019 07:31:31 -0600 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ti.com; s=ti-com-17Q1; t=1573738291; bh=8/wDtcVdVvs/3Umxwe1T1r5l+aLgUb89v9tZMmz7QOg=; h=From:To:CC:Subject:Date; b=RwnHzEIwdzmGjys3ZG55uaMqTpvMZyZM19yAN4OIRRPVMcMIQTKUUK33LmcYFPYLW i096IYlrwKkuiLZFU6vEVINCwrpwFuSr7WVS9K8CWcxRaTi1SPzDjDMe8/L9vaDzbT HyELQpoQXcefA7+KLVIesPrZ+bozcT3+NtzNSgvg= Received: from DFLE113.ent.ti.com (dfle113.ent.ti.com [10.64.6.34]) by lelv0266.itg.ti.com (8.15.2/8.15.2) with ESMTPS id xAEDVVUK019254 (version=TLSv1.2 cipher=AES256-GCM-SHA384 bits=256 verify=FAIL); Thu, 14 Nov 2019 07:31:31 -0600 Received: from DFLE109.ent.ti.com (10.64.6.30) by DFLE113.ent.ti.com (10.64.6.34) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.1847.3; Thu, 14 Nov 2019 07:31:30 -0600 Received: from fllv0039.itg.ti.com (10.64.41.19) by DFLE109.ent.ti.com (10.64.6.30) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.1847.3 via Frontend Transport; Thu, 14 Nov 2019 07:31:30 -0600 Received: from localhost (ileax41-snat.itg.ti.com [10.172.224.153]) by fllv0039.itg.ti.com (8.15.2/8.15.2) with ESMTP id xAEDVUPb079289; Thu, 14 Nov 2019 07:31:30 -0600 From: Dan Murphy To: , CC: , , Dan Murphy Subject: [PATCH v17 00/19] Multicolor Framework Date: Thu, 14 Nov 2019 07:30:04 -0600 Message-ID: <20191114133023.32185-1-dmurphy@ti.com> X-Mailer: git-send-email 2.22.0.214.g8dca754b1e MIME-Version: 1.0 X-EXCLAIMER-MD-CONFIG: e1e8a2fd-e40a-4ac6-ac9b-f7e9cc9ee180 Sender: linux-leds-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-leds@vger.kernel.org Hello Simple fix in the multicolor code where the extended registration call was not called in the devm_* function Thanks Martin F. for finding this issue. Hopefully this will be pulled in for the 5.5 merge window. Dan Dan Murphy (19): dt: bindings: Add multicolor class dt bindings documention dt-bindings: leds: Add multicolor ID to the color ID list leds: Add multicolor ID to the color ID list leds: multicolor: Introduce a multicolor class definition dt: bindings: lp50xx: Introduce the lp50xx family of RGB drivers leds: lp50xx: Add the LP50XX family of the RGB LED driver dt: bindings: lp55xx: Be consistent in the document with LED acronym dt: bindings: lp55xx: Update binding for Multicolor Framework ARM: dts: n900: Add reg property to the LP5523 channel node ARM: dts: imx6dl-yapp4: Add reg property to the lp5562 channel node ARM: dts: ste-href: Add reg property to the LP5521 channel nodes leds: lp55xx: Convert LED class registration to devm_* leds: lp55xx: Add multicolor framework support to lp55xx leds: lp5523: Update the lp5523 code to add multicolor brightness function leds: lp5521: Add multicolor framework multicolor brightness support leds: lp55xx: Fix checkpatch file permissions issues leds: lp5523: Fix checkpatch issues in the code dt: bindings: Update lp55xx binding to recommended LED naming leds: lp55xx-common: Remove extern from lp55xx-common header .../ABI/testing/sysfs-class-led-multicolor | 36 + .../bindings/leds/leds-class-multicolor.txt | 98 +++ .../devicetree/bindings/leds/leds-lp50xx.txt | 148 ++++ .../devicetree/bindings/leds/leds-lp55xx.txt | 163 +++- Documentation/leds/index.rst | 1 + Documentation/leds/leds-class-multicolor.rst | 100 +++ arch/arm/boot/dts/imx6dl-yapp4-common.dtsi | 14 +- arch/arm/boot/dts/omap3-n900.dts | 29 +- arch/arm/boot/dts/ste-href.dtsi | 22 +- drivers/leds/Kconfig | 22 + drivers/leds/Makefile | 2 + drivers/leds/led-class-multicolor.c | 272 ++++++ drivers/leds/led-core.c | 1 + drivers/leds/leds-lp50xx.c | 799 ++++++++++++++++++ drivers/leds/leds-lp5521.c | 43 +- drivers/leds/leds-lp5523.c | 62 +- drivers/leds/leds-lp5562.c | 22 +- drivers/leds/leds-lp55xx-common.c | 235 ++++-- drivers/leds/leds-lp55xx-common.h | 36 +- drivers/leds/leds-lp8501.c | 23 +- include/dt-bindings/leds/common.h | 3 +- include/linux/led-class-multicolor.h | 139 +++ include/linux/platform_data/leds-lp55xx.h | 8 + 23 files changed, 2106 insertions(+), 172 deletions(-) create mode 100644 Documentation/ABI/testing/sysfs-class-led-multicolor create mode 100644 Documentation/devicetree/bindings/leds/leds-class-multicolor.txt create mode 100644 Documentation/devicetree/bindings/leds/leds-lp50xx.txt create mode 100644 Documentation/leds/leds-class-multicolor.rst create mode 100644 drivers/leds/led-class-multicolor.c create mode 100644 drivers/leds/leds-lp50xx.c create mode 100644 include/linux/led-class-multicolor.h -- 2.22.0.214.g8dca754b1e Acked-by: Pavel Machek Acked-by: Pavel Machek Acked-by: Pavel Machek