Received: by 2002:a25:824b:0:0:0:0:0 with SMTP id d11csp309820ybn; Tue, 1 Oct 2019 21:31:24 -0700 (PDT) X-Google-Smtp-Source: APXvYqzZ2S5h65IfeoQUSd6ZKwfsjkpWZPBAFTPUG0xJzduFstlB6QtYwOElZn6Pi8E1fL5xR2zd X-Received: by 2002:a05:6402:1f4:: with SMTP id i20mr1715912edy.137.1569990683923; Tue, 01 Oct 2019 21:31:23 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1569990683; cv=none; d=google.com; s=arc-20160816; b=s1g2/9Jv4LeTOEHdQFQs02C6iuv/GiiCIgTlPVaHsbitOE7GWA1ouVkQGgln8DCo8d YBe7mwua6HgaKdYsgepuW3YGOQaU+2ndXWNn8BY1fWfqoZTEQdcAFzO870c+zJv8jqUr BpuomaGp/0q3NkLtcJdBAOjneOwhreyS5t8/utDZbK0S0uMP51H0G5hpcV9JAH0qcKKS AZ0O8GigFgTgVsai8o2OB0cQP2tJ8FbHNWVcaqcsvxzUww0KSadQ0iuyo5Q1hxD6F+TO sT1h8sFqHWnORw/fpwsryaKsoy9BacYhduwTg84oEhdpch96fykF5x+2D/7QDxW1tkxv uRVA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-language :content-transfer-encoding:in-reply-to:mime-version:user-agent:date :message-id:from:references:cc:to:subject:dkim-signature; bh=tHzgtqZw4ISfWYUY+AFYJlJ8yHApfyopEUBN88b1i8A=; b=swzK0JXYIzTL+XQLKfu0ZjzOgcaTPI9/e3ApXnOq8KrLMIZAOSy3JM6Q/0j1NAKEka pNeJsHJzyiAKoAb0oOSnc//rnh1gSwI2OaTKMYFNAFhls+Ifv4118wmePLduwXr9lVBz Ia5exoyuYepNyXkCM3Xgp7ScXgPc4whj6+cJavsIBRo1TehVg2KWnVTNy1d6mJtOOsf+ /ijr6lCiWCtsXB1FbbedqR9alsJezp961lHgTovyJW0FL1Uj3sSi+keCrrJMsisZMzAq aCUc2BsSox05LrY/lFAuyN1V3YX8MZ5XLto15wmUGu9Q77Q37rJ0rdM+pDiFIRIYk8k8 VDNw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@ti.com header.s=ti-com-17Q1 header.b=dLk1H9Ob; 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 rl13si10286835ejb.228.2019.10.01.21.30.59; Tue, 01 Oct 2019 21:31:23 -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=dLk1H9Ob; 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 S1726747AbfJAUKw (ORCPT + 99 others); Tue, 1 Oct 2019 16:10:52 -0400 Received: from lelv0143.ext.ti.com ([198.47.23.248]:53788 "EHLO lelv0143.ext.ti.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725851AbfJAUKw (ORCPT ); Tue, 1 Oct 2019 16:10:52 -0400 Received: from lelv0265.itg.ti.com ([10.180.67.224]) by lelv0143.ext.ti.com (8.15.2/8.15.2) with ESMTP id x91KAl3Y082677; Tue, 1 Oct 2019 15:10:47 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ti.com; s=ti-com-17Q1; t=1569960647; bh=tHzgtqZw4ISfWYUY+AFYJlJ8yHApfyopEUBN88b1i8A=; h=Subject:To:CC:References:From:Date:In-Reply-To; b=dLk1H9ObPJKTBFbDNXDIYw1gkquyYpjOCy/eJRQyP/0uddh5fLH1oSrmLNVqeJ6HZ 8toT+6ortm6MXidFp+ZK26SICQJxROwixmprA7rhmZKdsMhTv2tFcPmOIquHMwKr2R xgX9lzgt4pNOXBuOUrVz5dLeAhRoHjgyN3p/hBIE= Received: from DLEE109.ent.ti.com (dlee109.ent.ti.com [157.170.170.41]) by lelv0265.itg.ti.com (8.15.2/8.15.2) with ESMTPS id x91KAldO050408 (version=TLSv1.2 cipher=AES256-GCM-SHA384 bits=256 verify=FAIL); Tue, 1 Oct 2019 15:10:47 -0500 Received: from DLEE113.ent.ti.com (157.170.170.24) by DLEE109.ent.ti.com (157.170.170.41) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.1713.5; Tue, 1 Oct 2019 15:10:36 -0500 Received: from fllv0039.itg.ti.com (10.64.41.19) by DLEE113.ent.ti.com (157.170.170.24) 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, 1 Oct 2019 15:10:36 -0500 Received: from [10.250.65.13] (ileax41-snat.itg.ti.com [10.172.224.153]) by fllv0039.itg.ti.com (8.15.2/8.15.2) with ESMTP id x91KAk4J048809; Tue, 1 Oct 2019 15:10:46 -0500 Subject: Re: [PATCH 5/5] leds: lm3601x: Convert class registration to device managed To: Jacek Anaszewski , CC: , References: <20191001180439.8312-1-dmurphy@ti.com> <20191001180439.8312-5-dmurphy@ti.com> <66354452-f6f9-416d-0955-63914cb32746@gmail.com> From: Dan Murphy Message-ID: Date: Tue, 1 Oct 2019 15:11:10 -0500 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Thunderbird/60.8.0 MIME-Version: 1.0 In-Reply-To: <66354452-f6f9-416d-0955-63914cb32746@gmail.com> Content-Type: text/plain; charset="utf-8"; format=flowed Content-Transfer-Encoding: 7bit Content-Language: en-US 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 Jacek On 10/1/19 2:39 PM, Jacek Anaszewski wrote: > Hi Dan, > > Thank you for the patch. > > On 10/1/19 8:04 PM, Dan Murphy wrote: >> Convert LED flash class registration to device managed class >> registration API. >> >> Signed-off-by: Dan Murphy >> --- >> drivers/leds/leds-lm3601x.c | 3 +-- >> 1 file changed, 1 insertion(+), 2 deletions(-) >> >> diff --git a/drivers/leds/leds-lm3601x.c b/drivers/leds/leds-lm3601x.c >> index b02972f1a341..a68e4f97739c 100644 >> --- a/drivers/leds/leds-lm3601x.c >> +++ b/drivers/leds/leds-lm3601x.c >> @@ -350,8 +350,7 @@ static int lm3601x_register_leds(struct lm3601x_led *led, >> init_data.devicename = led->client->name; >> init_data.default_label = (led->led_mode == LM3601X_LED_TORCH) ? >> "torch" : "infrared"; >> - >> - return led_classdev_flash_register_ext(&led->client->dev, >> + return devm_led_classdev_flash_register_ext(&led->client->dev, >> &led->fled_cdev, &init_data); > You need to remove led_classdev_flash_unregister(&led->fled_cdev) from > lm3601x_remove() to complete this improvement. > Ack.