From patchwork Thu Aug 20 07:37:00 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Jisheng Zhang X-Patchwork-Id: 11725825 Return-Path: Received: from mail.kernel.org (pdx-korg-mail-1.web.codeaurora.org [172.30.200.123]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id B75821575 for ; Thu, 20 Aug 2020 07:55:42 +0000 (UTC) Received: from merlin.infradead.org (merlin.infradead.org [205.233.59.134]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id 9073420658 for ; Thu, 20 Aug 2020 07:55:42 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (2048-bit key) header.d=lists.infradead.org header.i=@lists.infradead.org header.b="fRT6hAuP"; dkim=fail reason="signature verification failed" (1024-bit key) header.d=Synaptics.onmicrosoft.com header.i=@Synaptics.onmicrosoft.com header.b="hbfQDW7c" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 9073420658 Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=synaptics.com Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=merlin.20170209; h=Sender:Content-Transfer-Encoding: Content-Type:Cc:List-Subscribe:List-Help:List-Post:List-Archive: List-Unsubscribe:List-Id:MIME-Version:References:In-Reply-To:Message-ID: Subject:To:From:Date:Reply-To:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Owner; bh=n29qx+8eb3dy9/FsenInm3X3Ebo7oJ8g22slAjEFXQM=; b=fRT6hAuPlztlyPq6M6NUO8zqY p2MdCpy7D1vF1w39b+6udN6CfqMSCFjLsehwsczkT8QiS8ebQejC8kavtC/18e+Ulf8Ho7lOthvtp v3DRdsnNJjUD0WVMWKTvXb+92EQqYvKdzcOIc2ClZiNs2v0TcHqqemu/3VeefS+c+mJEAnuIlVxCQ zk6pXZn8xT4b5Z/mvjElBiQx2US2ulsIqaZ5Ceg4JhaPbt1YR8J39Bj6yF+8w4AMmeMTc5YtYTNH4 df5XjixTXTF9vxSRFANkGaJLHMF4gmGkutsBAFB2yM5onbSsAdS53jB7BGqy1lJXO1TQZWhcULU40 QAb14qgZg==; Received: from localhost ([::1] helo=merlin.infradead.org) by merlin.infradead.org with esmtp (Exim 4.92.3 #3 (Red Hat Linux)) id 1k8fQ0-0000gt-Ta; Thu, 20 Aug 2020 07:55:29 +0000 Received: from mail-dm6nam10on2056.outbound.protection.outlook.com ([40.107.93.56] helo=NAM10-DM6-obe.outbound.protection.outlook.com) by merlin.infradead.org with esmtps (Exim 4.92.3 #3 (Red Hat Linux)) id 1k8fPv-0000db-Is for linux-arm-kernel@lists.infradead.org; Thu, 20 Aug 2020 07:55:24 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=VBW0Qm/523wbbtMxI4KWgnwZmWElDfDIk4DAmAmn9l669E5lc3pz7nB8X4eyTnM1ix6D7NSblM8LWjdNMKXZ+GTR5TQj5IWLCzRhqdU28/eDrZShcz22c/sabSNV4c+0ZkgbgYvd7uLNYdZb4DkhZcrq6HO+I9EbkcNqN+IhWasXZ4+9P/BedJi+fmZfj1LzYcBhLWTkmz9MFGB+N2JGMMXIx0OaQZR+D2roaxYVD10GV2Bl7bRCb/gK9TTwA8w7JDr+ir3Rb9RGEbR9p8tObgGfbRip4qwRhKsSNCkttAUtwQLlkjR0/w2k3q+cmt576U4xaeAngQmbRF6W2635xA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=O3zdwZEIEY3QYW7SGpQYmAMFrLLvTDP6gpCky+gDaWE=; b=Wg7gtw3Z7YilNOZQeAchoVAojKo4BbPxc+re0CQKzRid/3Wgq6SElGOYN4vq1Ql9XJRZw7Oaop7/jAaGmUTmHdag7fgfyTSYNJAgDAYfvxccpXCtTHgH/5Rtf6/G+vxfk7YRqPWP68cY2klX79EPc7ECSNmNDgjSp+bAN32KyZA+xOwRHMIWM7B+3cGS/+joAQRgANpPg0zm2W/N3V9oInGro1f8kAJfyjwTPp37HtUkB0j/mPH0zoCQCGg/Apu/g0ho667TcUOP/z3ip2h/Ac+LOkdASmnolMxFe2GeVp+OgyPDSt3vyhTcQHXpUkQEhZmU8qVcaL89lcXyki5Yzg== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=synaptics.com; dmarc=pass action=none header.from=synaptics.com; dkim=pass header.d=synaptics.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=Synaptics.onmicrosoft.com; s=selector2-Synaptics-onmicrosoft-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=O3zdwZEIEY3QYW7SGpQYmAMFrLLvTDP6gpCky+gDaWE=; b=hbfQDW7cck1d6pmGNKRxjX6twkLJG46OAs7MVO9RfFKOJDMSmbgjwU0BMqHiC6djT5W79FvfYQ5YtuoAweoi5O7Er03SU41Fgf5moHV6JCZsaznUX15NgEY7wdwV33XHOeO3pUPdJtuGNM/bijJwJiOmG5c5C7o0SNTJC1VVxz0= Authentication-Results: gmail.com; dkim=none (message not signed) header.d=none;gmail.com; dmarc=none action=none header.from=synaptics.com; Received: from BN7PR03MB4547.namprd03.prod.outlook.com (2603:10b6:408:9::22) by BN7PR03MB4563.namprd03.prod.outlook.com (2603:10b6:408:36::11) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.3283.16; Thu, 20 Aug 2020 07:55:20 +0000 Received: from BN7PR03MB4547.namprd03.prod.outlook.com ([fe80::3cda:7634:5802:df5f]) by BN7PR03MB4547.namprd03.prod.outlook.com ([fe80::3cda:7634:5802:df5f%7]) with mapi id 15.20.3305.024; Thu, 20 Aug 2020 07:55:20 +0000 Date: Thu, 20 Aug 2020 15:37:00 +0800 From: Jisheng Zhang To: Liam Girdwood , Mark Brown , Support Opensource , Maxime Coquelin , Alexandre Torgue , Icenowy Zheng Subject: [PATCH 07/12] regulator: max1586: Fix W=1 build warning when CONFIG_OF=n Message-ID: <20200820153700.21be8ff4@xhacker.debian> In-Reply-To: <20200820152926.42c48840@xhacker.debian> References: <20200820152926.42c48840@xhacker.debian> X-Mailer: Claws Mail 3.17.6 (GTK+ 2.24.32; x86_64-pc-linux-gnu) X-ClientProxiedBy: TY1PR01CA0194.jpnprd01.prod.outlook.com (2603:1096:403::24) To BN7PR03MB4547.namprd03.prod.outlook.com (2603:10b6:408:9::22) MIME-Version: 1.0 X-MS-Exchange-MessageSentRepresentingType: 1 Received: from 255.255.255.255 (255.255.255.255) by TY1PR01CA0194.jpnprd01.prod.outlook.com (2603:1096:403::24) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.3305.24 via Frontend Transport; Thu, 20 Aug 2020 07:55:17 +0000 X-Mailer: Claws Mail 3.17.6 (GTK+ 2.24.32; x86_64-pc-linux-gnu) X-Originating-IP: [124.74.246.114] X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: 53f4a4b4-d5d6-4990-5fbf-08d844de629a X-MS-TrafficTypeDiagnostic: BN7PR03MB4563: X-Microsoft-Antispam-PRVS: X-MS-Oob-TLC-OOBClassifiers: OLM:449; X-MS-Exchange-SenderADCheck: 1 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: g9le9ZTYwdlgs7VKCacD0J7pDyRyw81FV+y3OA1OJGtlD1zwgHJ/HvLH6Kh1E6Nmivkbs59RglAzyQhBMeC+5ofxqkBYaoBycsCXzDrBOojt/XJ3sSZBgGfI9FBdAUN0Kkjm5XBo3geL1kN6rsjOepD40x8MDKnv+Xbop47CC+kchDADE6p6DtM5Oyrg3JsEo7R1i6R1GK9iK2qY8//EwuFVqoUO+zQzwfVa+7lWgIO7QVzxZ//iNia+TV2dAXJjndm3PmcotxB4A06uZgKAuGNrg4Y340IbH0wYa2rYBSWpeTq/QG+4KorVV7/SGD9hKo1HEr574mKOLLCOsIw285FTYdjiFnqO1ptqDs99/K49FvhiNFdNqP7JOL2iRsz7 X-Forefront-Antispam-Report: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:BN7PR03MB4547.namprd03.prod.outlook.com; PTR:; CAT:NONE; SFS:(366004)(39860400002)(396003)(346002)(136003)(376002)(1076003)(4744005)(4326008)(2906002)(5660300002)(6666004)(478600001)(956004)(9686003)(83380400001)(26005)(316002)(86362001)(52116002)(8676002)(66946007)(16576012)(66556008)(6486002)(110011004)(8936002)(66476007)(110136005)(186003); DIR:OUT; SFP:1101; X-MS-Exchange-AntiSpam-MessageData: UmCF4udFDTyQmvRodyyfDvvVOHlhVOIZhgPfZM2bg92dryaXfHc3e0s36YdP3FbCDhhhiE2D72kwojG1ZzCB/CPO6efXYJDEyCOafLEMW9THFe/Sct3/sxOHzdBmkQcMJD07Blyh8HYXodofqN3HQ4vM54zJBx0pTFti2kDq4EdGBIcsQJfD1ONIoFO9KNjXe/j0AfUWCD7WBcXfOn5eK7KDVoMDx2gG4SjDnIp0TScOET+ZPByu0KO7bHBxn79JhRFZF/knnJlOiKLqoaqsKAfAWOqMI1Y00rU8YaeZKhxQM2kFLPT+Idt+Dd23LiSeHX7+xatgVmfJROxsTaNMuyqWruf9VAwfezHUJO3wchtx/RdGfScdjx7ONfKme8RFkCb6iwMbp82lqEmERx+pRD1jmU47P8ySQnveB2PxJ9P0xTFxDeYSagcK5UUk0QBVLfn9m8/elGgXqJvOhH1ZMcpaE8xEMydPedrfcPzsEglUqfyy+G5/n6nYt8xq5dH58SMlFM7XpYNRZmyYdXalghTR69ZwakxVLim6p/RPLiGqibFZfpTe+HdKRoz2JaYrF3jga5KvaE21rvCtNOmraaj8Ok2/9QN+rnI0VTWWV8zgmf14P0XLKYW4CMyuFhbLwC7PqXY0uHExkkZb4NT1dA== X-OriginatorOrg: synaptics.com X-MS-Exchange-CrossTenant-Network-Message-Id: 53f4a4b4-d5d6-4990-5fbf-08d844de629a X-MS-Exchange-CrossTenant-AuthSource: BN7PR03MB4547.namprd03.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 20 Aug 2020 07:55:20.3336 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 335d1fbc-2124-4173-9863-17e7051a2a0e X-MS-Exchange-CrossTenant-MailboxType: HOSTED X-MS-Exchange-CrossTenant-UserPrincipalName: TvrZsZjJnH3ozfg+uNQrEf/0de8fEhL4r0dglJg8DOBpuyzip1EKDDH6iOweL2sE0oCOq4sL+2ouS1pj9M9vWQ== X-MS-Exchange-Transport-CrossTenantHeadersStamped: BN7PR03MB4563 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20200820_035523_733718_B5857364 X-CRM114-Status: GOOD ( 11.37 ) X-Spam-Score: 1.3 (+) X-Spam-Report: SpamAssassin version 3.4.4 on merlin.infradead.org summary: Content analysis details: (1.3 points) pts rule name description ---- ---------------------- -------------------------------------------------- -0.0 RCVD_IN_DNSWL_NONE RBL: Sender listed at https://www.dnswl.org/, no trust [40.107.93.56 listed in list.dnswl.org] 1.3 RCVD_ILLEGAL_IP Received: contains illegal IP address -0.0 RCVD_IN_MSPIKE_H2 RBL: Average reputation (+2) [40.107.93.56 listed in wl.mailspike.net] -0.0 SPF_HELO_PASS SPF: HELO matches SPF record -0.0 SPF_PASS SPF: sender matches SPF record 0.1 DKIM_SIGNED Message has a DKIM or DK signature, not necessarily valid -0.1 DKIM_VALID Message has at least one valid DKIM or DK signature 0.0 MSGID_FROM_MTA_HEADER Message-Id was added by a relay X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-stm32@st-md-mailman.stormreply.com Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org Fix below warning when CONFIG_OF=n: drivers/regulator/max1586.c:204:34: warning: ‘max1586_of_match’ defined but not used [-Wunused-const-variable=] 204 | static const struct of_device_id max1586_of_match[] = { | ^~~~~~~~~~~~~~~~ Signed-off-by: Jisheng Zhang --- drivers/regulator/max1586.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/drivers/regulator/max1586.c b/drivers/regulator/max1586.c index f8941025780b..2ddcdd2908b1 100644 --- a/drivers/regulator/max1586.c +++ b/drivers/regulator/max1586.c @@ -201,11 +201,13 @@ static int of_get_max1586_platform_data(struct device *dev, return 0; } +#ifdef CONFIG_OF static const struct of_device_id max1586_of_match[] = { { .compatible = "maxim,max1586", }, {}, }; MODULE_DEVICE_TABLE(of, max1586_of_match); +#endif static int max1586_pmic_probe(struct i2c_client *client, const struct i2c_device_id *i2c_id)