From patchwork Fri Jul 27 02:37:44 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Katsuhiro Suzuki X-Patchwork-Id: 143007 Delivered-To: patch@linaro.org Received: by 2002:a2e:9754:0:0:0:0:0 with SMTP id f20-v6csp281099ljj; Thu, 26 Jul 2018 19:37:51 -0700 (PDT) X-Google-Smtp-Source: AAOMgpedR33BR8Co3tIIA2r6+lLxDteQN9yxJ5bZORo0cV1jGkiUkvcfmiViA2GzRM+Qmk5FVX2p X-Received: by 2002:a65:58c8:: with SMTP id e8-v6mr4194290pgu.96.1532659071623; Thu, 26 Jul 2018 19:37:51 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1532659071; cv=none; d=google.com; s=arc-20160816; b=gW3fFoE4rf18SPKe1QCRNEmUFC4GZdtAquJIy1fQBly62eionhnh4c9Ni6IcQAyuog DvMCLFXgM/KXLR71bQs8JLvVC/WQiqGUfOlpbMdg1qNkfRPF7pJgpS5FtpvP/FgmnBav MK4HoNJwHon84N0cTCncS0xrN3bMfs55lT0wJf9xZdrfp8sYSD7xY/6XtbQymMVHBU48 xb5k3IUm59BBod6NoSeTbLtr9jYUUENmsKLER6VdTVt1ZmKIs9LtJa6qsVH7bJ8ABrQq RA1DU83cnqUOviIsi7Spl5yg0gWKcyiGEfnqnHdySokQ9P+tluzbY2xeksmeiWl1+OeW Jz+g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:message-id:date:subject:cc:to:from :arc-authentication-results; bh=lYKjDGyswWIciZxvc2B6VYhmilAWhkiW+RITq7I7NFk=; b=qm/Kd3DnEPRuzAmwavnkC8P3H2gzUY438P5Y3oxs29Pw30KOFpYZjeA3RjbgYntDzM IBEhANyj307AQMwImH+b5RMPOr7iY4Dgi7tX4/p9SxZjOfnC/yWfBtioUC/ErH53V3sj aHs6q9qDvbATUkc+r2nvsHEVcJcLN1JhDjBQhftW9E2dA+Iks2n0lJTv2cwTAZTGQVL5 LwTUNs2neuzO9xzcFjcNI/Og/uIkjzvAS1KNQOOZY+AJF1v1LaJAEbC4D7UWBH1zlvoi 1LdGGlv5x7H3Z9cBakfutH6vKRPUtzp4ozz6o9OY8SGtnun/TFlugtdb0Gq5HToLoN13 ooiQ== 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 m32-v6si2548374pgl.622.2018.07.26.19.37.51; Thu, 26 Jul 2018 19:37:51 -0700 (PDT) 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 S1732158AbeG0D5Z (ORCPT + 31 others); Thu, 26 Jul 2018 23:57:25 -0400 Received: from mx.socionext.com ([202.248.49.38]:23204 "EHLO mx.socionext.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1731974AbeG0D5Z (ORCPT ); Thu, 26 Jul 2018 23:57:25 -0400 Received: from unknown (HELO kinkan-ex.css.socionext.com) ([172.31.9.52]) by mx.socionext.com with ESMTP; 27 Jul 2018 11:37:47 +0900 Received: from mail.mfilter.local (m-filter-1 [10.213.24.61]) by kinkan-ex.css.socionext.com (Postfix) with ESMTP id 2A042180D65; Fri, 27 Jul 2018 11:37:47 +0900 (JST) Received: from 172.31.9.53 (172.31.9.53) by m-FILTER with ESMTP; Fri, 27 Jul 2018 11:37:47 +0900 Received: from yuzu.css.socionext.com (yuzu [172.31.8.45]) by iyokan.css.socionext.com (Postfix) with ESMTP id B810240176; Fri, 27 Jul 2018 11:37:46 +0900 (JST) Received: from aegis.e01.socionext.com (unknown [10.213.134.210]) by yuzu.css.socionext.com (Postfix) with ESMTP id 919CF120448; Fri, 27 Jul 2018 11:37:46 +0900 (JST) From: Katsuhiro Suzuki To: Mark Brown , alsa-devel@alsa-project.org Cc: Masami Hiramatsu , Jassi Brar , linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, Katsuhiro Suzuki Subject: [PATCH] ASoC: uniphier: change functions to static Date: Fri, 27 Jul 2018 11:37:44 +0900 Message-Id: <20180727023744.7865-1-suzuki.katsuhiro@socionext.com> X-Mailer: git-send-email 2.18.0 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org This patch changes some functions that are not used by other objects to static. Signed-off-by: Katsuhiro Suzuki --- sound/soc/uniphier/aio-core.c | 6 +++--- sound/soc/uniphier/aio.h | 3 --- 2 files changed, 3 insertions(+), 6 deletions(-) -- 2.18.0 diff --git a/sound/soc/uniphier/aio-core.c b/sound/soc/uniphier/aio-core.c index 8b09bbb0f8d0..9bcba06ba52e 100644 --- a/sound/soc/uniphier/aio-core.c +++ b/sound/soc/uniphier/aio-core.c @@ -327,7 +327,7 @@ static int aio_port_set_ch(struct uniphier_aio_sub *sub) * * Return: Zero if successful, otherwise a negative value on error. */ -int aio_port_set_rate(struct uniphier_aio_sub *sub, int rate) +static int aio_port_set_rate(struct uniphier_aio_sub *sub, int rate) { struct regmap *r = sub->aio->chip->regmap; struct device *dev = &sub->aio->chip->pdev->dev; @@ -446,7 +446,7 @@ int aio_port_set_rate(struct uniphier_aio_sub *sub, int rate) * * Return: Zero if successful, otherwise a negative value on error. */ -int aio_port_set_fmt(struct uniphier_aio_sub *sub) +static int aio_port_set_fmt(struct uniphier_aio_sub *sub) { struct regmap *r = sub->aio->chip->regmap; struct device *dev = &sub->aio->chip->pdev->dev; @@ -511,7 +511,7 @@ int aio_port_set_fmt(struct uniphier_aio_sub *sub) * * Return: Zero if successful, otherwise a negative value on error. */ -int aio_port_set_clk(struct uniphier_aio_sub *sub) +static int aio_port_set_clk(struct uniphier_aio_sub *sub) { struct uniphier_aio_chip *chip = sub->aio->chip; struct device *dev = &sub->aio->chip->pdev->dev; diff --git a/sound/soc/uniphier/aio.h b/sound/soc/uniphier/aio.h index 23a5c3c68658..ca6ccbae0ee8 100644 --- a/sound/soc/uniphier/aio.h +++ b/sound/soc/uniphier/aio.h @@ -325,9 +325,6 @@ int aio_chip_set_pll(struct uniphier_aio_chip *chip, int pll_id, void aio_chip_init(struct uniphier_aio_chip *chip); int aio_init(struct uniphier_aio_sub *sub); void aio_port_reset(struct uniphier_aio_sub *sub); -int aio_port_set_rate(struct uniphier_aio_sub *sub, int rate); -int aio_port_set_fmt(struct uniphier_aio_sub *sub); -int aio_port_set_clk(struct uniphier_aio_sub *sub); int aio_port_set_param(struct uniphier_aio_sub *sub, int pass_through, const struct snd_pcm_hw_params *params); void aio_port_set_enable(struct uniphier_aio_sub *sub, int enable);