Received: by 2002:a05:6a10:22f:0:0:0:0 with SMTP id 15csp4172444pxk; Tue, 22 Sep 2020 12:08:33 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzoro7MJ4ln5cB4/pd9tSKKvPeumAoH2eW3JNvucxq4YDRRwVsUBVxENvmTptafHJlR4bCy X-Received: by 2002:a17:906:b156:: with SMTP id bt22mr6447420ejb.481.1600801712699; Tue, 22 Sep 2020 12:08:32 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1600801712; cv=none; d=google.com; s=arc-20160816; b=QnCXS5kaTTibQXRkBTWKqANvWjnWnthqgufvK3LzPhNAgq6rARuLiAnK0ijNTfypsB yaPN9YS3iPbLQ1+owTbCk+Lxrj1sAPyxG5vEIfKcvCuFPL00wrN70pclAmtkoN3I8Ya1 DJh7NoqAZhZ7ejsv8UoDp3CUPe4JEZTk5SBZbZt8TOqAvsMSRjNq7FPH5hSIFk4HCsbE eQlGX+OxwD8jSEQFSgUkYEwCpUI3cFoHVIIHxv6CESduRe7epfJHL16Mm36W39X421Nn 77uYhLAz46MTw1NjKpmdQOw3MNj4ilFHWXpEPQp74eMhLtZi8hAhNKRWXGW6MhYDcJnA BzjQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=FXdbHyKP4OzNMIPypLxJLv10RnWs+v7R3nDuBJSAw6Q=; b=05mZICblYa93biz8qaaZsWDK4CVuLzQWDsfI7DGcVaJstTFl/Wwkj3gYVi3RF8uvTo gB3tNWYcpt1+8TcA3NlQGawBdq7ZLcVFwv8YAz4awbW5vBxBhuHppxAVYhX77P2qJFLq NH68X6GqK1PNE0/UMpO28xtOD826aC5soepA7qYXJZhWpcSaVpefj/1dBMe+gyp7UxGZ IGWKqBX4ZYDtGiWugdmhPvT5D2Tcba+Zx+TJyjTV2ilKpnpLjBazg1yQWJj1rWF+Ck9N XADmyPKjStUxWtAr88VtCfyWD20llyN3PiwmQCmMRJEOaj3hfkg3tr7VE9BQuAZEo76O 8lBQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@ti.com header.s=ti-com-17Q1 header.b=mpNHno2P; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 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. [23.128.96.18]) by mx.google.com with ESMTP id q23si11628948ejn.400.2020.09.22.12.08.06; Tue, 22 Sep 2020 12:08:32 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@ti.com header.s=ti-com-17Q1 header.b=mpNHno2P; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 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 S1726637AbgIVTG4 (ORCPT + 99 others); Tue, 22 Sep 2020 15:06:56 -0400 Received: from fllv0016.ext.ti.com ([198.47.19.142]:60140 "EHLO fllv0016.ext.ti.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726563AbgIVTGz (ORCPT ); Tue, 22 Sep 2020 15:06:55 -0400 Received: from fllv0034.itg.ti.com ([10.64.40.246]) by fllv0016.ext.ti.com (8.15.2/8.15.2) with ESMTP id 08MJ6nSL104668; Tue, 22 Sep 2020 14:06:49 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ti.com; s=ti-com-17Q1; t=1600801609; bh=FXdbHyKP4OzNMIPypLxJLv10RnWs+v7R3nDuBJSAw6Q=; h=From:To:CC:Subject:Date:In-Reply-To:References; b=mpNHno2PW+BcB4HeOBpbFHKx9ydO48kRdmI1NjZfb6oLgjdxaG7z19z24NYtyV18C 4D8hJ5P4g6RrKmMEEBivjAiB2zjti/IuP+/EI9i6bclVVQPG/tUJqGd6ZftXCrj5dx dHlDDgwmESHID+T5b71TGIHHhQaHfBP8IXn771iQ= Received: from DLEE108.ent.ti.com (dlee108.ent.ti.com [157.170.170.38]) by fllv0034.itg.ti.com (8.15.2/8.15.2) with ESMTPS id 08MJ6nlh093212 (version=TLSv1.2 cipher=AES256-GCM-SHA384 bits=256 verify=FAIL); Tue, 22 Sep 2020 14:06:49 -0500 Received: from DLEE100.ent.ti.com (157.170.170.30) by DLEE108.ent.ti.com (157.170.170.38) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.1979.3; Tue, 22 Sep 2020 14:06:49 -0500 Received: from lelv0326.itg.ti.com (10.180.67.84) by DLEE100.ent.ti.com (157.170.170.30) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.1979.3 via Frontend Transport; Tue, 22 Sep 2020 14:06:49 -0500 Received: from localhost (ileax41-snat.itg.ti.com [10.172.224.153]) by lelv0326.itg.ti.com (8.15.2/8.15.2) with ESMTP id 08MJ6n2P130557; Tue, 22 Sep 2020 14:06:49 -0500 From: Dan Murphy To: CC: , , , Dan Murphy Subject: [PATCH 2/2] leds: lm36274: Fix warning for undefined parameters Date: Tue, 22 Sep 2020 14:06:38 -0500 Message-ID: <20200922190638.5323-2-dmurphy@ti.com> X-Mailer: git-send-email 2.27.0 In-Reply-To: <20200922190638.5323-1-dmurphy@ti.com> References: <20200922190638.5323-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 Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Fix warnings for undefined parameters when building with W=1. Fixes: 11e1bbc116a75 ("leds: lm36274: Introduce the TI LM36274 LED driver") Signed-off-by: Dan Murphy --- drivers/leds/leds-lm36274.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/drivers/leds/leds-lm36274.c b/drivers/leds/leds-lm36274.c index 10a63b7f2ecc..bf6487e9a1f4 100644 --- a/drivers/leds/leds-lm36274.c +++ b/drivers/leds/leds-lm36274.c @@ -26,8 +26,8 @@ * @lmu_data: Register and setting values for common code * @regmap: Devices register map * @dev: Pointer to the devices device struct - * @led_sources - The LED strings supported in this array - * @num_leds - Number of LED strings are supported in this array + * @led_sources: The LED strings supported in this array + * @num_leds: Number of LED strings are supported in this array */ struct lm36274 { struct platform_device *pdev; @@ -163,6 +163,7 @@ static struct platform_driver lm36274_driver = { .probe = lm36274_probe, .driver = { .name = "lm36274-leds", + .of_match_table = of_lm36274_leds_match, }, }; module_platform_driver(lm36274_driver) -- 2.28.0