Received: by 2002:a25:824b:0:0:0:0:0 with SMTP id d11csp8648155ybn; Tue, 1 Oct 2019 11:06:02 -0700 (PDT) X-Google-Smtp-Source: APXvYqzIEm+NIn2kpDVk1KrWKkNzvcD7e+j17EVWsO4eKtG9d8HepVq6QGGfZVM24FFxpa9k2OL7 X-Received: by 2002:a50:f78a:: with SMTP id h10mr27225610edn.161.1569953162435; Tue, 01 Oct 2019 11:06:02 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1569953162; cv=none; d=google.com; s=arc-20160816; b=ogHWYe9xVfc4sHeG3mnAtU3rQrI5npqDrautEu4o/1DEahQLX2KVsmfS0c0KP5q/4A 2eRj2nqoTVFBnKRpldAEIcQl1+ckhSefmziSEt3aj8QVDSaAtbM03BdZl2paV2mObdLu MPbiVx+N+YrfcxtcYi3juGKmTl/5reH0JFmTThC4drOEc13UQ7TOLzjrLierP8TJ2X1r XVFtx07I3YNR9FRf/qHDavUmBNP1r6heY/qh7Nswr2lfNG0V0v18EgiCiRz103PC78wp WfN740F98OPTAy1XOq5m5ibRrv0+LbdX926CP5lGwAlcdBD+hJtVIcDgRjM3+TUX/H6M v43A== 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 :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=WT/P1mEnJj8WBgXcn3xJJ5zXtDgJwUFTqbvfHlc/1d4=; b=Ke/bL40/OGhPilETmL/AIDqEdxNhJ13mMedfVPexAcIC2DfGC4gkISdsMjhrkwgWWF HakHuhKZucuzUkawBdJBBeAGSmF1SjjBMdMP2OHFIfCM4/A1950qaNdnCM9dXvKbhCJR GTgA+y1AoJ/ThaANDfdQG4sZgzKSvfFN3R8apzapwuAloKf8WiEQWcXia1j5jPLd2Xm4 Sdh792nd0YCz98IOAGl7b0iiFW0DnAG7Rkz37iTzVCP6pdmAAWZtunXohIVQFzqCv6D4 W+5NcC8m+b+XSp5E38z++d6AsGDGRidmQhoe4y27Wsl8H26561tXZLqNkrGzkoNdWsSV 1fyg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@ti.com header.s=ti-com-17Q1 header.b=OOXuR11S; 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 h19si9687523ejd.142.2019.10.01.11.05.35; Tue, 01 Oct 2019 11:06:02 -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=OOXuR11S; 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 S1731687AbfJASEf (ORCPT + 99 others); Tue, 1 Oct 2019 14:04:35 -0400 Received: from fllv0016.ext.ti.com ([198.47.19.142]:37684 "EHLO fllv0016.ext.ti.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727269AbfJASEY (ORCPT ); Tue, 1 Oct 2019 14:04:24 -0400 Received: from fllv0035.itg.ti.com ([10.64.41.0]) by fllv0016.ext.ti.com (8.15.2/8.15.2) with ESMTP id x91I4KD6039878; Tue, 1 Oct 2019 13:04:20 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ti.com; s=ti-com-17Q1; t=1569953060; bh=WT/P1mEnJj8WBgXcn3xJJ5zXtDgJwUFTqbvfHlc/1d4=; h=From:To:CC:Subject:Date:In-Reply-To:References; b=OOXuR11SyBzFS6yxZ4SvKUl3JFco8sOVmcUwsszet4vV6w64xazynBXFD3A03SrYI VVVzBtAiMoUU2qyPLBqnjYEoLkRMbArd9C2Je9E6iUpjRJKq8tK8gxZnTlohgq2dEs YS6WqBY2VjAoIYscmP1sPwpuUveXBipundRcI7UU= Received: from DLEE111.ent.ti.com (dlee111.ent.ti.com [157.170.170.22]) by fllv0035.itg.ti.com (8.15.2/8.15.2) with ESMTP id x91I4K30037723; Tue, 1 Oct 2019 13:04:20 -0500 Received: from DLEE113.ent.ti.com (157.170.170.24) by DLEE111.ent.ti.com (157.170.170.22) 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 13:04:09 -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 13:04:09 -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 x91I4J9b126184; Tue, 1 Oct 2019 13:04:19 -0500 From: Dan Murphy To: , CC: , , Dan Murphy Subject: [PATCH 5/5] leds: lm3601x: Convert class registration to device managed Date: Tue, 1 Oct 2019 13:04:39 -0500 Message-ID: <20191001180439.8312-5-dmurphy@ti.com> X-Mailer: git-send-email 2.22.0.214.g8dca754b1e In-Reply-To: <20191001180439.8312-1-dmurphy@ti.com> References: <20191001180439.8312-1-dmurphy@ti.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit 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 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); } -- 2.22.0.214.g8dca754b1e