Message ID | 20200626065738.93412-2-lee.jones@linaro.org (mailing list archive) |
---|---|
State | Mainlined |
Commit | 36f69fa96a23a054d3aea5793ce2ef3d95907713 |
Headers | show
Return-Path: <SRS0=pbEX=AH=lists.infradead.org=linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@kernel.org> 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 F168B618 for <patchwork-linux-arm@patchwork.kernel.org>; Fri, 26 Jun 2020 10:38:13 +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 BFC0A20775 for <patchwork-linux-arm@patchwork.kernel.org>; Fri, 26 Jun 2020 10:38:13 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (2048-bit key) header.d=lists.infradead.org header.i=@lists.infradead.org header.b="cAsIIMxb"; dkim=fail reason="signature verification failed" (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b="a68o20Gm" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org BFC0A20775 Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=linaro.org 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:Date: Subject:To:From:Reply-To:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Owner; bh=ahlCQ3w0kAk3S6HFzSFtoNvITgnqYoVdsYlSXjSlI5Y=; b=cAsIIMxbcv3YpdXGLticojgiZ nZ9dT1jwssmK1vPJd2w43Nu9j7JnmZnE/JXlZz3o/fu6IhncdOGNYetEeUijg5/nTQbHo0xwA5tHa eogaEGSXZe9K+NhSN3Mz0GrYEevZUaJVYVnWS4H8Tb/UC8SWdskDe+oVENOasyGBcgEpu+osYxtWu qUC9QcjWV+iobXubFX6v21L/poF05k09UhnyGeFzBYsQIE/W66lf3yc5O6EvluEKPJ90rxdxT1DEr g2D8jvxgTKVeETkLZSh+/ZEHu0htj1A1fVxQtorsMVxSju45Wali0Ylr9c7kur5InVf/t7rz9dyXK pMMrP5Y5Q==; Received: from localhost ([::1] helo=merlin.infradead.org) by merlin.infradead.org with esmtp (Exim 4.92.3 #3 (Red Hat Linux)) id 1joli6-0007Na-MU; Fri, 26 Jun 2020 10:35:54 +0000 Received: from mail-lj1-x241.google.com ([2a00:1450:4864:20::241]) by merlin.infradead.org with esmtps (Exim 4.92.3 #3 (Red Hat Linux)) id 1jolhT-00077N-61 for linux-arm-kernel@lists.infradead.org; Fri, 26 Jun 2020 10:35:22 +0000 Received: by mail-lj1-x241.google.com with SMTP id n23so9798858ljh.7 for <linux-arm-kernel@lists.infradead.org>; Fri, 26 Jun 2020 03:35:14 -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:in-reply-to:references :mime-version:content-transfer-encoding; bh=/E1PdVn/9jzzc34D3D+WNExjRWlGVi1N3dWKjpxsWKE=; b=a68o20Gmmh0AyVgl/PpKk+tsY9DfLFWxKbSXt+qf+QeHv9ryx9N2GLgLxgdpcME+oz n5CBJu8CJXJt6rWJBLxQ5rt2eGIOlPfgo+mLNsgXG9GfZLRbjdBgOz6oGuH++cBqasbF je/seh5XPcrMsHgXv1ANElfefrnnY6nPilIuMB4Tjk0++4C0Dwf2iBnNTr9pvI2DtdNv FYKKhpUxGrDfAOjuIkTfWcgJRArbRgC5fugLbAEwoDNWN1bCvH6cdkWnopB4uEyTKcR0 /osZUZ2sKKtLEVnIU4he/yg07D0715OWbL2KosASZvI/k/lGiD5JTUi7q6XmeV4ft1kH HQNg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=/E1PdVn/9jzzc34D3D+WNExjRWlGVi1N3dWKjpxsWKE=; b=j09+YYiceusK9g2wSIcrebE86RRncr9+gb2FAGiagRy0w/EOLFvYk2FpfZs5+ViSlD MBT5mH+lQNpgN0Rxn6vCPl+BTQAXmnbC30TsKqdBAyFUAktWF2iGvyAK74Kh0NWKLJ/t Ulmku2OVWiWjNeXSXi84qZqWZFwZcOI39HMedhDfTLm5MOMACCgsWYqlFGCl2UkwQccH U6rioOY3kijxwIkBNw7yLBs2H+WncHE79Ep/OkRS/XeH4b5yas1Yroczw1una/5EaULb O71R+LOjJugO7UOa5196zntdIe2ZsBpfwO53p1lpJQNBbWvuDXyQlCgumwt36UqrH22m Lo7w== X-Gm-Message-State: AOAM531hAM7ne7vMBAlaUMmAIfdQ4viRLArD/KrH4EO1pJjKBUtyhoXU Wicqs0WvyrM0z5jfrcuZUrINRKige4I= X-Google-Smtp-Source: ABdhPJzlrUVwS/s+z+kPaLN7mMZ6TH290vDO8qERoSmz8o7Sm04wV5mFHDvFboop/xRMB+UYBri1Yw== X-Received: by 2002:adf:f504:: with SMTP id q4mr2075095wro.163.1593154663208; Thu, 25 Jun 2020 23:57:43 -0700 (PDT) Received: from localhost.localdomain ([2.27.35.144]) by smtp.gmail.com with ESMTPSA id x18sm15355269wmi.35.2020.06.25.23.57.42 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 25 Jun 2020 23:57:42 -0700 (PDT) From: Lee Jones <lee.jones@linaro.org> To: broonie@kernel.org, lgirdwood@gmail.com Subject: [PATCH 1/9] regulator: max8998: Staticify internal function max8998_get_current_limit() Date: Fri, 26 Jun 2020 07:57:30 +0100 Message-Id: <20200626065738.93412-2-lee.jones@linaro.org> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20200626065738.93412-1-lee.jones@linaro.org> References: <20200626065738.93412-1-lee.jones@linaro.org> MIME-Version: 1.0 X-Spam-Note: CRM114 invocation failed X-Spam-Score: -0.2 (/) X-Spam-Report: SpamAssassin version 3.4.4 on merlin.infradead.org summary: Content analysis details: (-0.2 points) pts rule name description ---- ---------------------- -------------------------------------------------- -0.0 RCVD_IN_DNSWL_NONE RBL: Sender listed at https://www.dnswl.org/, no trust [2a00:1450:4864:20:0:0:0:241 listed in] [list.dnswl.org] -0.0 SPF_PASS SPF: sender matches SPF record 0.0 SPF_HELO_NONE SPF: HELO does not publish an SPF Record -0.1 DKIM_VALID_EF Message has a valid DKIM or DK signature from envelope-from domain -0.1 DKIM_VALID_AU Message has a valid DKIM or DK signature from author's domain 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 X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: <linux-arm-kernel.lists.infradead.org> List-Unsubscribe: <http://lists.infradead.org/mailman/options/linux-arm-kernel>, <mailto:linux-arm-kernel-request@lists.infradead.org?subject=unsubscribe> List-Archive: <http://lists.infradead.org/pipermail/linux-arm-kernel/> List-Post: <mailto:linux-arm-kernel@lists.infradead.org> List-Help: <mailto:linux-arm-kernel-request@lists.infradead.org?subject=help> List-Subscribe: <http://lists.infradead.org/mailman/listinfo/linux-arm-kernel>, <mailto:linux-arm-kernel-request@lists.infradead.org?subject=subscribe> Cc: Kyungmin Park <kyungmin.park@samsung.com>, Lee Jones <lee.jones@linaro.org>, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, Marek Szyprowski <m.szyprowski@samsung.com> Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: base64 Sender: "linux-arm-kernel" <linux-arm-kernel-bounces@lists.infradead.org> Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org |
Series |
Fix a bunch more W=1 warnings in Regulator
|
expand
|
diff --git a/drivers/regulator/max8998.c b/drivers/regulator/max8998.c index 340413bba0c5f..ac69bdd398cb3 100644 --- a/drivers/regulator/max8998.c +++ b/drivers/regulator/max8998.c @@ -415,7 +415,7 @@ static int max8998_set_current_limit(struct regulator_dev *rdev, sel, rdev->desc->csel_mask); } -int max8998_get_current_limit(struct regulator_dev *rdev) +static int max8998_get_current_limit(struct regulator_dev *rdev) { struct max8998_data *max8998 = rdev_get_drvdata(rdev); struct i2c_client *i2c = max8998->iodev->i2c;
max8998_get_current_limit() is only used via the .get_current_limit, so it doesn't need to be publicly supported, or to have its own external prototype. Instead, we'll make it static. Fixes the following W=1 warning: drivers/regulator/max8998.c:418:5: warning: no previous prototype for ‘max8998_get_current_limit’ [-Wmissing-prototypes] 418 | int max8998_get_current_limit(struct regulator_dev *rdev) | ^~~~~~~~~~~~~~~~~~~~~~~~~ Cc: Kyungmin Park <kyungmin.park@samsung.com> Cc: Marek Szyprowski <m.szyprowski@samsung.com> Signed-off-by: Lee Jones <lee.jones@linaro.org> --- drivers/regulator/max8998.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)