From patchwork Wed Aug 31 09:30:31 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Baoyou Xie X-Patchwork-Id: 75056 Delivered-To: patch@linaro.org Received: by 10.140.29.52 with SMTP id a49csp233626qga; Wed, 31 Aug 2016 02:31:17 -0700 (PDT) X-Received: by 10.66.177.7 with SMTP id cm7mr15168282pac.132.1472635877665; Wed, 31 Aug 2016 02:31:17 -0700 (PDT) Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id p184si50027064pfp.114.2016.08.31.02.31.17; Wed, 31 Aug 2016 02:31:17 -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; dkim=pass header.i=@linaro.org; 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; dmarc=pass (p=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1759833AbcHaJbO (ORCPT + 27 others); Wed, 31 Aug 2016 05:31:14 -0400 Received: from mail-pf0-f174.google.com ([209.85.192.174]:34852 "EHLO mail-pf0-f174.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1759704AbcHaJbM (ORCPT ); Wed, 31 Aug 2016 05:31:12 -0400 Received: by mail-pf0-f174.google.com with SMTP id x72so17769282pfd.2 for ; Wed, 31 Aug 2016 02:31:11 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id; bh=+BUSkvaGeph4m6dU5SDlv8ToI7/qZttaUgxS5UxgKPE=; b=eOgm4EJ63YMs0TBwNE9YtFUzIYG22wUAmgS92o5SKymF1skbiABAoB1cGappZEDPYA k9wH+lVeXstLIsUkPz78hLNvOvJwz9tRo5p4l5/VZBYryvkmB9GctGI4ubeM253o1ueJ 2f/LTRks2HYRio18u/jTc3Wff3BQQd/vvB8MA= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:to:cc:subject:date:message-id; bh=+BUSkvaGeph4m6dU5SDlv8ToI7/qZttaUgxS5UxgKPE=; b=knf4spsa8jR1OYbQbFqKfofV2KtszpiX4lcFBPdVk7TzWGnF0BNQhTfiQnSR257ebm 2MNHqxhJ8+s3tbud8RyaChJYPucHVpackgtn0iGUIIjr/gVoHVjf7+l2uEhcTkR9suSB JdgR5Ym7rUF9XVq9Ki/jbpqWHxZMDgusUHgVGcMvM3C637u9cChly1GciUyvCWscasPk Z7MXIyHYcNsmTlv2HQdlrZ9d4ifU1fTdixDoUX/5EMarKBBHJns/GfUf+lkPFMX0p6bN rnk4RJ9iUdXI6ueI56PuvXdl3Mxiuhu3PvdcSS9Av8LYf9KZ5uCfkMVcPy5m/tXJ3Grq +/UQ== X-Gm-Message-State: AE9vXwM3n9PAMMq04KdAq1fPxhJuHQz2atfhrfJc6pGQh7zFR4IOG8IX5SxxXFVaUW7z87Wa X-Received: by 10.98.204.74 with SMTP id a71mr15016061pfg.149.1472635871384; Wed, 31 Aug 2016 02:31:11 -0700 (PDT) Received: from localhost.localdomain ([104.237.91.37]) by smtp.gmail.com with ESMTPSA id d7sm29549782pas.11.2016.08.31.02.31.07 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Wed, 31 Aug 2016 02:31:10 -0700 (PDT) From: Baoyou Xie To: lgirdwood@gmail.com, broonie@kernel.org Cc: linux-kernel@vger.kernel.org, arnd@arndb.de, baoyou.xie@linaro.org, xie.baoyou@zte.com.cn Subject: [PATCH] regulator: hi6421: mark hi6421_regulator_ldo_get_optimum_mode() static Date: Wed, 31 Aug 2016 17:30:31 +0800 Message-Id: <1472635831-20290-1-git-send-email-baoyou.xie@linaro.org> X-Mailer: git-send-email 2.7.4 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org We get 1 warning when building kernel with W=1: drivers/regulator/hi6421-regulator.c:480:14: warning: no previous prototype for 'hi6421_regulator_ldo_get_optimum_mode' [-Wmissing-prototypes] In fact, this function is only used in the file in which it is declared and don't need a declaration, but can be made static. So this patch marks it 'static'. Signed-off-by: Baoyou Xie --- drivers/regulator/hi6421-regulator.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) -- 2.7.4 Acked-by: Arnd Bergmann diff --git a/drivers/regulator/hi6421-regulator.c b/drivers/regulator/hi6421-regulator.c index 42dc5fb..62c5f54 100644 --- a/drivers/regulator/hi6421-regulator.c +++ b/drivers/regulator/hi6421-regulator.c @@ -477,7 +477,8 @@ static int hi6421_regulator_buck_set_mode(struct regulator_dev *rdev, return 0; } -unsigned int hi6421_regulator_ldo_get_optimum_mode(struct regulator_dev *rdev, +static unsigned int +hi6421_regulator_ldo_get_optimum_mode(struct regulator_dev *rdev, int input_uV, int output_uV, int load_uA) { struct hi6421_regulator_info *info = rdev_get_drvdata(rdev);