Received: by 2002:a25:ad19:0:0:0:0:0 with SMTP id y25csp3183455ybi; Fri, 5 Jul 2019 03:18:45 -0700 (PDT) X-Google-Smtp-Source: APXvYqzgbKRh3YVjw+gG96a80o09XN8Mw4PIyHogbuooi+1uEcuWOAIMxAALL9xL6208hMy8DCnD X-Received: by 2002:a63:2a8d:: with SMTP id q135mr4530734pgq.46.1562321924986; Fri, 05 Jul 2019 03:18:44 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1562321924; cv=none; d=google.com; s=arc-20160816; b=AmOl78aNGFiQMEVkyiHUJqDWryauoaTZpIHL9HUD2t+uNRHDGvv7rsPAdtYAgDLbut O81QK6bBBRoZM2BQ66ZHUm6X4uz/HdR/m2MSG/YIv+qkPAItTQVyzfWd1LoZmITy+pBN O2dRonNFwKg0ph39tJB2G3h2DJrZZ/9G/hr2d4BMNTGE04N6Z6vJTBKqkiuzeIcJ7bo2 78W7jn90XUfFQez1TW6LOQtjj4Wrdz/QlByG+0uLDETwTIiPMUYx8ErmKL6HeoUSG8S8 f8/psO/QSvAznjsYR9r7S4EpcJs4sxQRuv/9YYFrQU7gY0d86F1Eq9bbxXjexnI/+h3f cBUw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date; bh=7LZmeffr0xuv+/ZVWn3ipsdv8UfBtbJ3upMYzpqtogw=; b=0/6eJX/YNyOn24yfZ26MMxZXg5O3f3Jt7j3IHyZTQ+89QBGRp4Qlkb8Y2x6FoQQ9Ge nq7k89gsm62zxOl0gLKRDJLCDVzNFkWs75o7JyZQPjwcWYJIcZtKN6hQhikH624xpDoh odYfRCW/klK3dpDzZgysy3sb6GGfur4+JbfWP45ssTkDwgd2lpS0G7G0BERmmbjUMipE UhQhFn2hW16lnQkkjXEuxtUWdiDiMF0ldnX7BvjgJ7Yo2O5R+jcviyBe6e6fBNPw52tZ FRhOY2ljPbTWmZkxcEXm4uy5kOWwxBBqR/Eu/BtdDk/1oDXoqgriL+439FTKrQmy6kt6 ZvNw== ARC-Authentication-Results: i=1; mx.google.com; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id x185si9245722pfx.243.2019.07.05.03.18.29; Fri, 05 Jul 2019 03:18:44 -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; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727665AbfGEKSH (ORCPT + 99 others); Fri, 5 Jul 2019 06:18:07 -0400 Received: from atrey.karlin.mff.cuni.cz ([195.113.26.193]:47432 "EHLO atrey.karlin.mff.cuni.cz" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726549AbfGEKSH (ORCPT ); Fri, 5 Jul 2019 06:18:07 -0400 Received: by atrey.karlin.mff.cuni.cz (Postfix, from userid 512) id CCFEE806B3; Fri, 5 Jul 2019 12:17:54 +0200 (CEST) Date: Fri, 5 Jul 2019 12:17:55 +0200 From: Pavel Machek To: Jean-Jacques Hiblot Cc: jacek.anaszewski@gmail.com, dmurphy@ti.com, linux-leds@vger.kernel.org, linux-kernel@vger.kernel.org, tomi.valkeinen@ti.com Subject: Re: [PATCH 1/2] leds: tlc591xx: simplify driver by using the managed led API Message-ID: <20190705101755.gd36zbjz2p4x3yp6@devuan> References: <20190701152602.31716-1-jjhiblot@ti.com> <20190701152602.31716-2-jjhiblot@ti.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20190701152602.31716-2-jjhiblot@ti.com> User-Agent: NeoMutt/20170113 (1.7.2) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon 2019-07-01 17:26:01, Jean-Jacques Hiblot wrote: > Use the managed API of the LED class (devm_led_classdev_register() > instead of led_classdev_register()). > This allows us to remove the code used to track-and-destroy the LED devices > > Signed-off-by: Jean-Jacques Hiblot ack. -- (english) http://www.livejournal.com/~pavelmachek (cesky, pictures) http://atrey.karlin.mff.cuni.cz/~pavel/picture/horses/blog.html