Received: by 2002:a25:c593:0:0:0:0:0 with SMTP id v141csp6003666ybe; Tue, 10 Sep 2019 12:01:54 -0700 (PDT) X-Google-Smtp-Source: APXvYqwBU0YpQT0LJIRZEydkyU2Xcz0RJsS8XHNba9fu+xoCMKyKP+Z8bzG+Ug7/J6NhCNAzj+3y X-Received: by 2002:a50:d718:: with SMTP id t24mr29860859edi.168.1568142113939; Tue, 10 Sep 2019 12:01:53 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1568142113; cv=none; d=google.com; s=arc-20160816; b=htD/O4RhubIKoj2mbxUPzh9txznwpfIM+AkgViRFGuKcqImdBhuGUVL1cudml/42GB kp0BSnOv4fRjFd4/GZWUS15UC9Uza4+NnV1G92MGeOn5Y2E3dN0sGE7Dbm3Vrh8jXjcq wEVYl6i/PEsxKI10fdJzckKq7kkqCW10Y+92ktj7lwdBxdaoX5ln3H5fJJ0XOFWl9vTH /MAad5eVZgD0Sq6asiNLjjTqX7PibPAKT2k+w5PoL0tKnFyK0KUFD1IE+T+Jago1hR0c g4JavnyJT7+ML32hzL8vUWFc/2rIm6kEPns0RBoLDKhNes5uqUvSaOzFFZdNUqLicuh1 o4ag== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:dkim-signature; bh=YVo6iYdWALs+Xpp42Wo9fNLJ3/ExYwL0sdWFDjBnzhg=; b=vXadmmaC1c0DW0LkYBY4Y/LmveIWAfTpmF8mBpNW5vRh+VXwXngH7cn2D4uf0RbagE LRUurUseWa6BqUlCD8O4gxqCfOoX3q3HSnk8Q6gaaQ8o7ZPkUAvptZvTI/e/R6Udankm MrVzfw/Sk6ztuzmoazF/zZbTfQo/O6NFrOC4y0F4QoeaWYk3QfnT9QFjhvzkdIBsPJSn NYRUmdVDRF4nb7LBEP/SYkGxbx3DC1KqBalRSvLyXMwboXOZbFU0US+UEJ/iQ3Pp+7o0 IB7nGcMUsP4KIoaOjcBqXQWHWBlg9ThjtEqObgNA3EKGM8KoOikymYuSBAwazExNs5z4 h1xw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@ti.com header.s=ti-com-17Q1 header.b=hN4dTuYi; 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 z9si11813039edz.77.2019.09.10.12.01.30; Tue, 10 Sep 2019 12:01:53 -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=hN4dTuYi; 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 S1732823AbfIJNif (ORCPT + 99 others); Tue, 10 Sep 2019 09:38:35 -0400 Received: from lelv0142.ext.ti.com ([198.47.23.249]:45590 "EHLO lelv0142.ext.ti.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726060AbfIJNie (ORCPT ); Tue, 10 Sep 2019 09:38:34 -0400 Received: from fllv0034.itg.ti.com ([10.64.40.246]) by lelv0142.ext.ti.com (8.15.2/8.15.2) with ESMTP id x8ADcWBf109914; Tue, 10 Sep 2019 08:38:32 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ti.com; s=ti-com-17Q1; t=1568122712; bh=YVo6iYdWALs+Xpp42Wo9fNLJ3/ExYwL0sdWFDjBnzhg=; h=From:To:CC:Subject:Date:In-Reply-To:References; b=hN4dTuYimJ8DhlcyIzLdo62tOV563GuW51gbUS8PITVh905RUmAvpVHKYh/RO0txG Sf/Pl4pf7wJqL0ToLQjgnCx3hZ/bzjAUIcCroKkLk79mCT3P/E3K6vJg4y5sSJGua3 EJODGWKyxfnwM5f/+tgMwClRQWXcToKC1uEWebSM= Received: from DFLE105.ent.ti.com (dfle105.ent.ti.com [10.64.6.26]) by fllv0034.itg.ti.com (8.15.2/8.15.2) with ESMTPS id x8ADcWMY101041 (version=TLSv1.2 cipher=AES256-GCM-SHA384 bits=256 verify=FAIL); Tue, 10 Sep 2019 08:38:32 -0500 Received: from DFLE110.ent.ti.com (10.64.6.31) by DFLE105.ent.ti.com (10.64.6.26) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.1713.5; Tue, 10 Sep 2019 08:38:31 -0500 Received: from fllv0039.itg.ti.com (10.64.41.19) by DFLE110.ent.ti.com (10.64.6.31) 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; Tue, 10 Sep 2019 08:38:31 -0500 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 x8ADcVos119262; Tue, 10 Sep 2019 08:38:31 -0500 From: Jean-Jacques Hiblot To: , , CC: , , , Jean-Jacques Hiblot Subject: [RESEND,v2 2/2] leds: tlc591xx: Use the OF version of the LED registration function Date: Tue, 10 Sep 2019 15:38:14 +0200 Message-ID: <20190910133814.10275-3-jjhiblot@ti.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20190910133814.10275-1-jjhiblot@ti.com> References: <20190910133814.10275-1-jjhiblot@ti.com> 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 The driver parses the device-tree to identify which LED should be handled. Since the information about the device node is known at this time, we can provide the LED core with it. It may be useful later. Signed-off-by: Jean-Jacques Hiblot Reviewed-by: Tomi Valkeinen Acked-by: Pavel Machek --- drivers/leds/leds-tlc591xx.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/leds/leds-tlc591xx.c b/drivers/leds/leds-tlc591xx.c index 3d5a4b92f016..10764a62cb71 100644 --- a/drivers/leds/leds-tlc591xx.c +++ b/drivers/leds/leds-tlc591xx.c @@ -207,7 +207,7 @@ tlc591xx_probe(struct i2c_client *client, led->led_no = reg; led->ldev.brightness_set_blocking = tlc591xx_brightness_set; led->ldev.max_brightness = LED_FULL; - err = devm_led_classdev_register(dev, &led->ldev); + err = devm_of_led_classdev_register(dev, child, &led->ldev); if (err < 0) { dev_err(dev, "couldn't register LED %s\n", led->ldev.name); -- 2.17.1