Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp3522430imu; Mon, 17 Dec 2018 23:04:06 -0800 (PST) X-Google-Smtp-Source: AFSGD/WOrhJVg0niuN+ZXO1DGkuX2eblL7LtYPh6RvQjFfiwWH5udWK1RXHWyTPozcd4G/t27BS8 X-Received: by 2002:a63:fe48:: with SMTP id x8mr9757481pgj.261.1545116646605; Mon, 17 Dec 2018 23:04:06 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1545116646; cv=none; d=google.com; s=arc-20160816; b=IBgMOb5XA3358LK5rkg92AOG7/IB9u+XZJ1gAEgrVlyjoZnqlYR3xHZQ/Qjbh6olRk /hBnXFMlFoAwNKNavanJRha++WZEkSn/a2FEM0i9KK5tDBUmNSMTGq+L7iNZ+7RVwuxO vaO3P2QFuXzBIPitZ2/+WFNGYC1q3ajQGTFKXEsCh5TTLkLJP03CgLRbWf5hKX+rI9kM pQXbccd3kRPFwd3Dg7TbzNrn1SMozIotJvE4jgVRf/1gF0gQFip47la8QUVr0V0Z++sC QV6cHHItudC1AViKL0Ot01+tQcogB00skp5161sloa0RK66cDZ9kTcwPfVnBAG6t16lp 2eag== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:content-transfer-encoding :message-id:date:subject:cc:to:from; bh=zc2sNOywUhRcwDidwkoxWvoZ6zFYJP738wPPyyBqCu4=; b=yjUnlwJUyD3CcjyJQ5iemCQjB0EbHyiNczVOHD9wnZKKm12P+QnC/5BCIY83qy91cE 5u1DSVvevjz+Ndiuea23Cxp1vyQulniunN/AHotJArTT7TEvqGrnpWExOp7VHyVQoxJJ PWrtbPveyqjB0EiQJOCw20IwRLaBdydDawZHYKFoEFW6gWIGFxPC/8UjOA8yMBYTSW1W 0PiVwOirYnMCtWHicPKYVcHkVh9UQEaQMJFYcS4ICPkE0aO3Fgbg6Sx2cLGzy09rKp51 ob488Yzejul6iCrq8KIQbh8kbRVIaeIrC1kxwp/z4t8aOzzSNOb8exeeUt0tGubriK7U kEvg== ARC-Authentication-Results: i=1; mx.google.com; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id f90si12999282plb.362.2018.12.17.23.03.51; Mon, 17 Dec 2018 23:04:06 -0800 (PST) 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; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726432AbeLRHCz (ORCPT + 99 others); Tue, 18 Dec 2018 02:02:55 -0500 Received: from szxga07-in.huawei.com ([45.249.212.35]:60832 "EHLO huawei.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1726324AbeLRHCz (ORCPT ); Tue, 18 Dec 2018 02:02:55 -0500 Received: from DGGEMS406-HUB.china.huawei.com (unknown [172.30.72.59]) by Forcepoint Email with ESMTP id 40325EB766027; Tue, 18 Dec 2018 15:02:52 +0800 (CST) Received: from localhost.localdomain.localdomain (10.175.113.25) by DGGEMS406-HUB.china.huawei.com (10.3.19.206) with Microsoft SMTP Server id 14.3.408.0; Tue, 18 Dec 2018 15:02:43 +0800 From: Wei Yongjun To: Liam Girdwood , Mark Brown , Boris Brezillon CC: Wei Yongjun , , Subject: [PATCH -next] regulator: act8945a-regulator: make symbol act8945a_pm static Date: Tue, 18 Dec 2018 07:10:21 +0000 Message-ID: <1545117021-178814-1-git-send-email-weiyongjun1@huawei.com> X-Mailer: git-send-email 1.8.3.1 Content-Type: text/plain; charset="ISO-8859-1" Content-Transfer-Encoding: 7bit MIME-Version: 1.0 X-Originating-IP: [10.175.113.25] X-CFilter-Loop: Reflected Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Fixes the following sparse warning: drivers/regulator/act8945a-regulator.c:340:1: warning: symbol 'act8945a_pm' was not declared. Should it be static? Fixes: 7482d6ecc68e ("regulator: act8945a-regulator: Implement PM functionalities") Signed-off-by: Wei Yongjun --- drivers/regulator/act8945a-regulator.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/regulator/act8945a-regulator.c b/drivers/regulator/act8945a-regulator.c index 90572b6..dc3942b 100644 --- a/drivers/regulator/act8945a-regulator.c +++ b/drivers/regulator/act8945a-regulator.c @@ -337,7 +337,7 @@ static int act8945a_suspend(struct device *pdev) return regmap_write(act8945a->regmap, ACT8945A_SYS_CTRL, 0x42); } -SIMPLE_DEV_PM_OPS(act8945a_pm, act8945a_suspend, NULL); +static SIMPLE_DEV_PM_OPS(act8945a_pm, act8945a_suspend, NULL); static void act8945a_pmic_shutdown(struct platform_device *pdev) {