Received: by 2002:a25:ad19:0:0:0:0:0 with SMTP id y25csp6726420ybi; Mon, 8 Jul 2019 07:40:37 -0700 (PDT) X-Google-Smtp-Source: APXvYqy0aOHMgt4H84JgE7NjnNrn0fVnOCahlvfyiAQIWZeDvxBEwL+H5sEV+wtHIqQopsrGbKw9 X-Received: by 2002:a63:1645:: with SMTP id 5mr23975310pgw.175.1562596837121; Mon, 08 Jul 2019 07:40:37 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1562596837; cv=none; d=google.com; s=arc-20160816; b=h6onvoIH5uS+sEJwpEF/FlsCdIT6oNK0bLL2hVGqZ9/EEygMaP93R8B85jcm+aVAO5 uOVr6qDlXOlCf9uUnqoePL567oLaOUOjZh3cNg4d3xc+XP0nxFjpT4ModeJAkG8BfJpp 3exJcUT6pnJSXUK3ORZaKS6QoXOfw26gFNwTMGDMdF7e6k3EDReEC4uVw4jxOHTuyThn 0pYLzH1wjXvaEjWOP5083xxQe02jSWTUv72eo+iHtQb2ZbnIlCWyfh9PA2qEL+1XkDqg wfey4NQv7LmYDZXIMADRCY+v0jvD9n20smlPFkw5I8rSDUC1lYtoe8zocPBNKfc77xcB QonA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:message-id:date:subject:cc :to:from:dkim-signature; bh=EcMSu4m42xGnN8JKAeX2Bwa3OOPO+UWNpzBhOLNRiVE=; b=NfRvN+XATYtLTVAVfds3gB3hHjCrz5E5pm1UkY1vf9ylPndCA6iOFWJfDjSGwac8o4 h/FNHleDf/jncZJGdFVd962/jD7eX6iMkSDBG68HIyZi5+DK3frT4+Da47hHgIh4KvnO JZt0hxYsEJN1Oh+r1PDeGf07Uns8VZI/+dre25i1OMBYcJEZCQ+37xinKXCkmigYPdSE 0umfzAdOtkjm8YMpJZAxcneN0N0ttSLbFS7WpURPOzdARdWmYmclvUMpCpGlGDe8vKbR LHRBdwGr9wmN1rD1k9q5odKKZQDlmteZMb4f9e0JilebG4vfTsyLsczj+D+h0stgmbyb Nzmw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@ti.com header.s=ti-com-17Q1 header.b=ma2l54tT; 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; 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 f3si18344280plf.261.2019.07.08.07.40.21; Mon, 08 Jul 2019 07:40:37 -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=@ti.com header.s=ti-com-17Q1 header.b=ma2l54tT; 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; dmarc=pass (p=QUARANTINE sp=NONE dis=NONE) header.from=ti.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1729913AbfGHKGd (ORCPT + 99 others); Mon, 8 Jul 2019 06:06:33 -0400 Received: from fllv0016.ext.ti.com ([198.47.19.142]:34212 "EHLO fllv0016.ext.ti.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729231AbfGHKGd (ORCPT ); Mon, 8 Jul 2019 06:06:33 -0400 Received: from lelv0265.itg.ti.com ([10.180.67.224]) by fllv0016.ext.ti.com (8.15.2/8.15.2) with ESMTP id x68A6QVY113797; Mon, 8 Jul 2019 05:06:26 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ti.com; s=ti-com-17Q1; t=1562580386; bh=EcMSu4m42xGnN8JKAeX2Bwa3OOPO+UWNpzBhOLNRiVE=; h=From:To:CC:Subject:Date; b=ma2l54tTxoJDLFiKmNns9Vwg86XUbrpJSBI1fyf1TWQGWKY146xc/jyYa4MElowlr aFt04xQF8Zy77cDNlr8Bhs12q4sdkOA7g/xB3b5eqvD/jWtaUEEC+9lOQXZWlcUYC8 ctCff8vkzX/BOpawkVn2gYTJp9aQ6jYTv0HxR0qM= Received: from DFLE112.ent.ti.com (dfle112.ent.ti.com [10.64.6.33]) by lelv0265.itg.ti.com (8.15.2/8.15.2) with ESMTPS id x68A6QNB116794 (version=TLSv1.2 cipher=AES256-GCM-SHA384 bits=256 verify=FAIL); Mon, 8 Jul 2019 05:06:26 -0500 Received: from DFLE108.ent.ti.com (10.64.6.29) by DFLE112.ent.ti.com (10.64.6.33) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.1713.5; Mon, 8 Jul 2019 05:06:26 -0500 Received: from lelv0327.itg.ti.com (10.180.67.183) by DFLE108.ent.ti.com (10.64.6.29) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.1713.5 via Frontend Transport; Mon, 8 Jul 2019 05:06:26 -0500 Received: from localhost (ileax41-snat.itg.ti.com [10.172.224.153]) by lelv0327.itg.ti.com (8.15.2/8.15.2) with ESMTP id x68A6P6E016819; Mon, 8 Jul 2019 05:06:26 -0500 From: Jean-Jacques Hiblot To: , , CC: , , , Jean-Jacques Hiblot Subject: [PATCH v2 0/2] leds: tlc591xx: switch to OF and managed API Date: Mon, 8 Jul 2019 12:06:18 +0200 Message-ID: <20190708100620.22388-1-jjhiblot@ti.com> X-Mailer: git-send-email 2.17.1 MIME-Version: 1.0 Content-Type: text/plain X-EXCLAIMER-MD-CONFIG: e1e8a2fd-e40a-4ac6-ac9b-f7e9cc9ee180 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org This mini-series updates the tlc591xx driver to use the managed API. The driver is also modified to pass the DT node to the LED core layer. The goal is to be able to the generic led-backlight [0] driver on top of it. changes in v2: - fixed LED indexing. Previous version did not allow for holes: if n LEDs were used, they had to be led(0) to led(n-1) Jean-Jacques Hiblot (2): leds: tlc591xx: simplify driver by using the managed led API leds: tlc591xx: Use the OF version of the LED registration function drivers/leds/leds-tlc591xx.c | 79 +++++++++--------------------------- 1 file changed, 20 insertions(+), 59 deletions(-) -- 2.17.1