From patchwork Thu Aug 20 07:37:29 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Jisheng Zhang X-Patchwork-Id: 11725811 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 E9AD714F6 for ; Thu, 20 Aug 2020 07:54:04 +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 AA5A32076E for ; Thu, 20 Aug 2020 07:54:04 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (2048-bit key) header.d=lists.infradead.org header.i=@lists.infradead.org header.b="sHii06SM"; dkim=fail reason="signature verification failed" (1024-bit key) header.d=Synaptics.onmicrosoft.com header.i=@Synaptics.onmicrosoft.com header.b="bjOyaqr7" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org AA5A32076E 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=xNtk+cBuDjfrdrnCjV1Xa1lvzTL/qQh2+QJxIrLXkXU=; b=sHii06SMTUbBvoX2VkTCZY/9L TKUlh29OucCzi/Vm0oL+XdIzQpVChslkLSnjvArpIYGX+a/kewdDTCXhaUksKwN2XDi9dXzVtiR1Q w4R2T/qoZN8UGp+JPu/tSGGikHIJuTxQaJNdOgxWeMg+7r5qUa+zRtOQEHvxq3QvBoQhdmSMCo8Yi R4GTCK24KYZi/PaCYfjzOlnJj4AadN9NO/GYluXP6IRj/cvcXbBGbeAvb5uF/1H8+6hTYIScaEIpj NUwcTNoFVspYg1JfWBu+qlr+e3P73e/+gSxl8b4Q6E0sx/zPeOVhsZhROos3Yeb/hvKfZUfqNWl50 t2E1J8UjA==; Received: from localhost ([::1] helo=merlin.infradead.org) by merlin.infradead.org with esmtp (Exim 4.92.3 #3 (Red Hat Linux)) id 1k8fN5-0007YW-Tr; Thu, 20 Aug 2020 07:52:27 +0000 Received: from mail-bn8nam11on2087.outbound.protection.outlook.com ([40.107.236.87] helo=NAM11-BN8-obe.outbound.protection.outlook.com) by merlin.infradead.org with esmtps (Exim 4.92.3 #3 (Red Hat Linux)) id 1k8fN2-0007WX-0K for linux-arm-kernel@lists.infradead.org; Thu, 20 Aug 2020 07:52:24 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=oN2w27agZnqgEA9oa3EDc+TZussk50ocX/lb7i85iRbxkOQJ3B6N2dPwnufv/f68oztEPmV0TpD7vAtN25pI4Oxby/HYLqE4p6LWBCod8dIi3ZgnoMdaIVQBB8zJRmrYB67y4lBGtng3uc9B3peTIGO8zedtHNt/HhjVea+m6dVo3oh+mK6ZN1Ec+rAZ5itbZjfZUfFpRRmBUGDvO0NPqMtE+qKfDRsGlAO5XhP8uzPXonPx5zVxSq3i7GCDAaAUowHLAbffoehiaNnywPOGbC9hI4FFMkU7h+seISFDIWvLPwacNuSRHvddJuqhTcXHRxPemZDSwDqdVa3l5vSlgw== 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=cY98/iL0igA9aI5KOwzSk23gsLJVoLsPK3WGTOCE19k=; b=Qrj1A982jvDR3L/vDTJ3KstETCDQGsfIxVk+8gg1TzdALFiATTXaHK/H6F1qUomb25Bo/Wfv+C77kFd4YtPzjl8KTBt4Ud3q8fx3b7nDXKFMp0Pt82cwUUD8Cxv+xRHTAAl5sdA5bx+xkeC0NNNNGgWRNqA3tKdMKAq5MC5uPPkSCHJ/kNxk3XiDTmi3r4Log5MSLDxfNF+qR3jALJNksbDebKWuYaBrwinhpJZrF+u6LLDoHoW38B7cn4zZafhdGvDYd6HewvFE9oaKWH8sUPQu3EwdSgt3UBeUekIrnn7d5Lu0Un1hc0ak7e6hrX2wfSzoGZMBc+Ae/NzHASoCIw== 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=cY98/iL0igA9aI5KOwzSk23gsLJVoLsPK3WGTOCE19k=; b=bjOyaqr7+w1nUwvFKx5C9R0mq54GiwRFgSwXjYDfh1nywbgG1eM4xG4ErPvzJM06JR1M+XIuAqzHotKcbJP3UpVJBV+3ovNIhYCDec0swYRvysMuJ6wxurrLGqAqp3RZ7OcgaYDz1K39qB+Cr65uxs7GwO7/73063UHPuQhr2/Q= 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:52:22 +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:52:22 +0000 Date: Thu, 20 Aug 2020 15:37:29 +0800 From: Jisheng Zhang To: Liam Girdwood , Mark Brown , Support Opensource , Maxime Coquelin , Alexandre Torgue , Icenowy Zheng Subject: [PATCH 08/12] regulator: max77826: Fix W=1 build warning when CONFIG_OF=n Message-ID: <20200820153729.4bee7e48@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:52:19 +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: 39989689-7188-493e-6047-08d844ddf87e 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: l5glhRY6cYMwHxVlCZO/Pw23Mn66kjd4aKjkuZyrS8fiyKq3ixCAVhOdqDg69PRsb4mU5SaKuFcPmJEktQJLeHOcZ3zrS1imw8jswEPA63qAQwhDhS+XQEMpFFFNL20qvicNaxQyo5ACvi0yDxsQf7HVuyH5xNHe61XJRRC699nPKaDsHpsA1Nb0T8P1UrY2Th5uYCji4gsAE7HECWmcCzM7iF9T3Gf3logQy3OO3xy1pb3NIW24hmF6ZbYVYScxkEVdZFrXkEL9swpi3Li43ucPGJQ89q531uuZoY6bU+kGcaXIzHNO62kWAC/ma4WAZbfGVfsSuYFQlXn6PODpJRNeKpIbJ+Fy/CCTGzwNQXv6lVsnMZDwFzajIVzmCl9X 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)(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: 0C1RznXcXqwL+LTr4MfdOC7wZ9fuIX9wILv25biXbSxxpoYTnSvtqsj2IT5quk6QMnS7Kj0ED6W7eVwmCgmx+tyrXBH4XU58EAODmaNGfg8HiDBtwxs3pp+8g56ApLTdXqqdESm+b4CH4M+kH5nc776h3D++cIG9WaejGIfT9oWYtwC/BStNon87u2cBb+B7fu0ElREdepH16Bei5N6qxHiFvtXcNjKXriGObmLSUUp/vc1EBVcXwO3VQOOC+QAxdlA2BfjcMePLQX/+VYSQFYWX4zTYb/9b4tbzkzpGBzTac+VfiCOlQRTxgUHPG6cLUh5jRw32SBxfQe8bRraoMUhLSJlmeL4tL58qzhU4RnpQu4a7VnUF78nslf9UQhlbF3HtYvegYlDxl+jgiaWX/lXWc11NExC2sPVy1y9QoW/1i8we3/hMwRcfBlAKdAVOX+rC3eYJcf22oB6Hwau59iX1AbKKofVkf47dqDm2t9DWakSHmLEKujiY1b+u+tyeROqzi3nBXbxAoPXgEc6YkjU54nPw1BusMgQQlfsvomXniOrcm0Qen2mwMxyjxKzijRk4fJw6eTWyklxytCXJFN6pTayR1/EEWBMjve9jmpv/zVG/BxfEWGAkkw6nS9PkXv76xCw4OFlFo53RoYgbQA== X-OriginatorOrg: synaptics.com X-MS-Exchange-CrossTenant-Network-Message-Id: 39989689-7188-493e-6047-08d844ddf87e 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:52:22.3186 (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: Uk8iTm89XHsAtHoM1pEL/YGsE/5Rk0q9H0VTNycwR01TySthq9bcAlpKN7s9l5weTB2lH7WI7SOP/AKcsR48zg== X-MS-Exchange-Transport-CrossTenantHeadersStamped: BN7PR03MB4563 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20200820_035224_145059_D0C84704 X-CRM114-Status: GOOD ( 11.48 ) 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 ---- ---------------------- -------------------------------------------------- 1.3 RCVD_ILLEGAL_IP Received: contains illegal IP address -0.0 RCVD_IN_DNSWL_NONE RBL: Sender listed at https://www.dnswl.org/, no trust [40.107.236.87 listed in list.dnswl.org] -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 RCVD_IN_MSPIKE_H2 RBL: Average reputation (+2) [40.107.236.87 listed in wl.mailspike.net] 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/max77826-regulator.c:277:34: warning: ‘max77826_of_match’ defined but not used [-Wunused-const-variable=] 277 | static const struct of_device_id max77826_of_match[] = { | ^~~~~~~~~~~~~~~~~ Signed-off-by: Jisheng Zhang --- drivers/regulator/max77826-regulator.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/drivers/regulator/max77826-regulator.c b/drivers/regulator/max77826-regulator.c index 502ab6afc814..7fbdcd7118a8 100644 --- a/drivers/regulator/max77826-regulator.c +++ b/drivers/regulator/max77826-regulator.c @@ -274,11 +274,13 @@ static int max77826_i2c_probe(struct i2c_client *client) return max77826_read_device_id(regmap, dev); } +#ifdef CONFIG_OF static const struct of_device_id max77826_of_match[] = { { .compatible = "maxim,max77826" }, { /* sentinel */ } }; MODULE_DEVICE_TABLE(of, max77826_of_match); +#endif static const struct i2c_device_id max77826_id[] = { { "max77826-regulator" },