From patchwork Thu Aug 20 07:47:04 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Jisheng Zhang X-Patchwork-Id: 11725829 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 7375616B1 for ; Thu, 20 Aug 2020 07:55:51 +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 4BD0E208B3 for ; Thu, 20 Aug 2020 07:55:51 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (2048-bit key) header.d=lists.infradead.org header.i=@lists.infradead.org header.b="h7Ho/wcp"; dkim=fail reason="signature verification failed" (1024-bit key) header.d=Synaptics.onmicrosoft.com header.i=@Synaptics.onmicrosoft.com header.b="eBfxegga" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 4BD0E208B3 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=DsBjh6GtB4yyHGS5P1IGfOgN69sTAdnJIEBW378PgN0=; b=h7Ho/wcpaQRK0nqbxYz0a2jBr e+fxDsBbZuuJMTZBxotIN9UXNFxPoBwNskRIK4+vJSv+PaGkRaUN/VEJqj43uP1NBrePYMkPpDgs8 sdyulgr0VkpQ64iNPNbM92YM0PpacQBC2NDK3Ulq9cs2qw9wa5twVvAEkk2+RJAQedWuycEdgvvDb fw3dSR7j51aNp/n5EVXZDbj6CFHnaHkNPPD9pssK4IuJ2WL6IghMREB7q9K1XTze5lMJCl3C3J2L6 wTwjeDJ6zTLQKCO0XET5q71UzwbjRiCy7NDmOhELqHC+3Ob10i8TxsyAwYu7BRwlNS+j5Eove2bVQ l2+rCvLGw==; Received: from localhost ([::1] helo=merlin.infradead.org) by merlin.infradead.org with esmtp (Exim 4.92.3 #3 (Red Hat Linux)) id 1k8fQ8-0000ll-R7; Thu, 20 Aug 2020 07:55:36 +0000 Received: from mail-dm6nam10on2089.outbound.protection.outlook.com ([40.107.93.89] helo=NAM10-DM6-obe.outbound.protection.outlook.com) by merlin.infradead.org with esmtps (Exim 4.92.3 #3 (Red Hat Linux)) id 1k8fQ1-0000hC-1J for linux-arm-kernel@lists.infradead.org; Thu, 20 Aug 2020 07:55:30 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=l7i+t0tkYQc0SjTJMEzGhA/FORWM0YXAhzWtfeKuk/+CajLvrzdnmWndAFXVjeTjR5Gx8IfYU/5HZIWNkrZ+2T0vu/TI4t6ESxKfJXgAQk968hTb65I8m9zRDeVpc8Gia3MVOz0JnmBSKuTXPnglf0gSS1bocRSE+H/s/VkFxa6fdteTZ9t2joi/ZTNhlN0/WPep3VgYNA0yWV0pRmYHodv8TIchhqfQfCMeXDRyIlS9n6whc8vRt8779bKTTuiKoq1Hlt6rvGQyuyj99lfZruc0T8FN7nf6FtqsU/SpCg6kn5KjZA4GUHJujfH2RmBCWg5FWHfQT++bv2CwHVAYkg== 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=qIBWkqwgrba5o7D2YduJImEnPNs0UI/3+EVP5ccdMGY=; b=HGUPWvXsoUhDqKSshGifHMRZUduDH+/vpIonmVXm00Gftd6EKzrmZoyf0DFmVOadhRIDQv4eq8qBGh7kzg1wbZlDqp5X0ie7UgTuGVgnpJUMs2NibozKliEjdLCj6Np877HA6eAME2NNlpuDqyJMpXTUIHuGI9JMsc7ZV9RqMKqBDOuGKgf0HA3MxcrTer7d9sgXCl9C0DcLhkJZln9lpPDTJbFqjYmSZ735UjxaLUKpLDMO+wGRI8jXbv6Dat9p6AisV3rkW1qDxUIzIMUNWDzLCyYp3iyMHX0Ktvzvgle+SpoSA3xctX/Y8ErEAndBMNX7B3tKUZTY7buGn2g5CA== 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=qIBWkqwgrba5o7D2YduJImEnPNs0UI/3+EVP5ccdMGY=; b=eBfxeggaZOOstw1mKT18uVO3tcWPFB9CKjeLoN6XB0uuKZyca0IYH69W6qjG4WPkfGBkSz4qvQaQ+cxeJxfCWWBdXU3Gq++2So5RltPJ8hTxla/VigrGYdY2Jby0kjmWkOQOcwpaPXsjojrkaSkEiSQtCDUzD/yqTMjOoV9I9Co= 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:26 +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:26 +0000 Date: Thu, 20 Aug 2020 15:47:04 +0800 From: Jisheng Zhang To: Liam Girdwood , Mark Brown , Support Opensource , Maxime Coquelin , Alexandre Torgue , Icenowy Zheng Subject: [PATCH 12/12] regulator: sy8106a: Fix W=1 build warning when CONFIG_OF=n Message-ID: <20200820154704.14554720@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:23 +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: bc5f0b7e-7e0a-45de-64f5-08d844de663d 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: 91Y5vmgbIBvLxxSSwG1BQT/nEOhigh+nxTuOwmj6anJW3PNqlA/J34L7JpGSLwKo7JIZ3MULnUHhvBaZs+HQzzDdnMu0gze6Ave/+PJUBCLIR4j35ElzSZcjkEv9gKjRFP4cLyCjbAydtBZFjfILWibS2Sk18AwHQfomeOzFE8+dJy12C72NC0dMRYIgEM0478NTciuFuq+fle7DC/hMqB6gWzFSqmgIuE3e/Au5SK3Wbjm95DzQrpvbmtt0RTjtyNt5M+QWt9wYieynybQO4MWNSQtk/8TYYyrp/yprBm1riUnsEQknEuOmilTXfZV0Ov3uO3hDvzOCA9AjAju/4mGH2i+Us1ht2o17fAuj+QEF5I8SYOVdOIIXhK4NiZdU 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: Ir4uxmwi6IDskQkqx7G4ftsxyJvffmbI5nDdNXrzTqL6WHi6f6AtVC3r0e3Jwi2UXgvtUoDuaVEULHyoEFl1eHLgsJo3Eo9P3qq4CQ2Il8cJI5VPvaJoVbQV+4uXYvK/1EXYAResqDmwIDSWPJaTQyzZxWrxXO31T7/bYdjLubqE2C0+KSSTLSbXHP25N3DlO4/oKzfvLzlU70fOFqPeSg40M5RFtphpfmyq8/+qAyvgl07SPPBX54mL/aJb1tmzf3YU0tSNYUhc2sdS+nSwsnlvAkzjPVSzqgMQPzGviMytNEpYXJw5z65sxcxEntaxM5Sy3FbMRFFexrPI3B1V+MpDJeFiplOp19CXb1fAFP57iCi/nEh27c+JcWQSbwpVp6pX7aEgE4e50q1nCyC7awQyH4scTj9lqA36KzXbWtx+xIvlURce6HwFwg8kc68I6SlR8wQN8/o+1qdWBC3lgcF3ilmxYt1/e6L4EpimEJHE+k95yFKAhVoeq7nbCevphrgzmRqZhGXL9NEP8phebz38eshQ3Hl0KNV0A6Ry/oAY8zZ6q4ZFsjZ1IqsFDBmVc+DXqQGyRJWtEtlWy/Aava/eMNxO8h/nC4z2u3y8BIxn3OH0ZijJDeaQNmiUOsqLX95OV5ta7yUU7yio8m0Ldw== X-OriginatorOrg: synaptics.com X-MS-Exchange-CrossTenant-Network-Message-Id: bc5f0b7e-7e0a-45de-64f5-08d844de663d 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:26.6090 (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: xirjHcObegYLoN3gT1jUW4rkvu637yC59EGkgJpQ21sY09q7v5NzAvAUWN/gVBrnHJQrgPdsuEvf5FgFTM2HeA== X-MS-Exchange-Transport-CrossTenantHeadersStamped: BN7PR03MB4563 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20200820_035529_214371_962B016C X-CRM114-Status: GOOD ( 11.58 ) 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.89 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.89 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/sy8106a-regulator.c:126:34: warning: ‘sy8106a_i2c_of_match’ defined but not used [-Wunused-const-variable=] 126 | static const struct of_device_id sy8106a_i2c_of_match[] = { | ^~~~~~~~~~~~~~~~~~~~ Signed-off-by: Jisheng Zhang --- drivers/regulator/sy8106a-regulator.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/drivers/regulator/sy8106a-regulator.c b/drivers/regulator/sy8106a-regulator.c index 2222e739e62b..1878caf4dd40 100644 --- a/drivers/regulator/sy8106a-regulator.c +++ b/drivers/regulator/sy8106a-regulator.c @@ -123,11 +123,13 @@ static int sy8106a_i2c_probe(struct i2c_client *i2c) return 0; } +#ifdef CONFIG_OF static const struct of_device_id sy8106a_i2c_of_match[] = { { .compatible = "silergy,sy8106a" }, { }, }; MODULE_DEVICE_TABLE(of, sy8106a_i2c_of_match); +#endif static const struct i2c_device_id sy8106a_i2c_id[] = { { "sy8106a", 0 },