From patchwork Fri Jun 17 17:21:51 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: weiyj_lk@163.com X-Patchwork-Id: 9184679 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id 9BACB601C0 for ; Fri, 17 Jun 2016 17:22:19 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 7AC7427EED for ; Fri, 17 Jun 2016 17:22:19 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 6F9C728385; Fri, 17 Jun 2016 17:22:19 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-1.8 required=2.0 tests=BAYES_00,DKIM_SIGNED, FREEMAIL_FROM, RCVD_IN_DNSWL_NONE, T_DKIM_INVALID autolearn=no version=3.3.1 Received: from alsa0.perex.cz (alsa0.perex.cz [77.48.224.243]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id A2B2B27EED for ; Fri, 17 Jun 2016 17:22:17 +0000 (UTC) Received: by alsa0.perex.cz (Postfix, from userid 1000) id 050482669E3; Fri, 17 Jun 2016 19:22:16 +0200 (CEST) Received: from alsa0.perex.cz (localhost [127.0.0.1]) by alsa0.perex.cz (Postfix) with ESMTP id E4A17266927; Fri, 17 Jun 2016 19:22:04 +0200 (CEST) X-Original-To: alsa-devel@alsa-project.org Delivered-To: alsa-devel@alsa-project.org Received: by alsa0.perex.cz (Postfix, from userid 1000) id 58B95266468; Fri, 17 Jun 2016 19:22:03 +0200 (CEST) Received: from m12-11.163.com (m12-11.163.com [220.181.12.11]) by alsa0.perex.cz (Postfix) with ESMTP id 4627C266468 for ; Fri, 17 Jun 2016 19:21:54 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=163.com; s=s110527; h=From:Subject:Date:Message-Id:MIME-Version; bh=KZGtT urHlvQwEW6aWF3HSHeuRHKhjDmH5cTtzE9D1Ig=; b=H5/W09RLXEWOFVPQrBE7W 8xt4rdDhwhvBcX2zZkUTOCr88DmaNAGwVnenUnFHuHrwxmQ4N2gpx0tqgzAGSAUu CzztQ50uHqK4i1ufEH8+IYuIHMZHd7+oYBEuWd4Iv8QNK1F6rt7w3+LYwi8glv/x Df3thgD5kNJItRrT9v31UQ= Received: from localhost.localdomain.localdomain (unknown [117.36.101.242]) by smtp7 (Coremail) with SMTP id C8CowAD3Ol2wMWRXikdWAQ--.14048S3; Sat, 18 Jun 2016 01:21:52 +0800 (CST) From: weiyj_lk@163.com To: Peter Rosin , Liam Girdwood , Mark Brown , Jaroslav Kysela , Takashi Iwai Date: Fri, 17 Jun 2016 17:21:51 +0000 Message-Id: <1466184111-12667-1-git-send-email-weiyj_lk@163.com> X-Mailer: git-send-email 2.5.5 MIME-Version: 1.0 X-CM-TRANSID: C8CowAD3Ol2wMWRXikdWAQ--.14048S3 X-Coremail-Antispam: 1Uf129KBjvdXoW7WryUXr1UurW3Jr1xKF4kZwb_yoWkCwbEk3 47urWDXry0yFZakrZ8CF4jyas7Xasa9FZrK340qFZrJas8J3W5Ar48Ar13CFWDZw1kAa4U JF12qr4UC3sFkjkaLaAFLSUrUUUUUb8apTn2vfkv8UJUUUU8Yxn0WfASr-VFAUDa7-sFnT 9fnUUvcSsGvfC2KfnxnUUI43ZEXa7IUe7rc7UUUUU== X-Originating-IP: [117.36.101.242] X-CM-SenderInfo: pzhl5yxbonqiywtou0bp/1tbivxCL1lWBSfzwGgAAs5 Cc: Wei Yongjun , alsa-devel@alsa-project.org, linux-kernel@vger.kernel.org Subject: [alsa-devel] [PATCH -next] ASoC: max9860: fix non static symbol warnings X-BeenThere: alsa-devel@alsa-project.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: "Alsa-devel mailing list for ALSA developers - http://www.alsa-project.org" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: alsa-devel-bounces@alsa-project.org Sender: alsa-devel-bounces@alsa-project.org X-Virus-Scanned: ClamAV using ClamSMTP From: Wei Yongjun Fixes the following sparse warnings: sound/soc/codecs/max9860.c:120:28: warning: symbol 'max9860_regmap' was not declared. Should it be static? sound/soc/codecs/max9860.c:596:25: warning: symbol 'max9860_pm_ops' was not declared. Should it be static? Signed-off-by: Wei Yongjun --- sound/soc/codecs/max9860.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/sound/soc/codecs/max9860.c b/sound/soc/codecs/max9860.c index 2b0dd6a..68074c9 100644 --- a/sound/soc/codecs/max9860.c +++ b/sound/soc/codecs/max9860.c @@ -117,7 +117,7 @@ static bool max9860_precious(struct device *dev, unsigned int reg) return false; } -const struct regmap_config max9860_regmap = { +static const struct regmap_config max9860_regmap = { .reg_bits = 8, .val_bits = 8, @@ -593,7 +593,7 @@ static int max9860_resume(struct device *dev) } #endif -const struct dev_pm_ops max9860_pm_ops = { +static const struct dev_pm_ops max9860_pm_ops = { SET_RUNTIME_PM_OPS(max9860_suspend, max9860_resume, NULL) };