All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] regulator: qcom_rpm: remove defined but not used 'pm8921_ftsmps'
@ 2020-04-09 11:40 Jason Yan
  2020-04-10  1:29 ` Bjorn Andersson
  2020-04-14 15:58 ` Applied "regulator: qcom_rpm: remove defined but not used 'pm8921_ftsmps'" to the regulator tree Mark Brown
  0 siblings, 2 replies; 3+ messages in thread
From: Jason Yan @ 2020-04-09 11:40 UTC (permalink / raw)
  To: agross, bjorn.andersson, lgirdwood, broonie, linux-arm-msm,
	linux-kernel
  Cc: Jason Yan

Fix the following gcc warning:

drivers/regulator/qcom_rpm-regulator.c:607:34: warning: ‘pm8921_ftsmps’
defined but not used [-Wunused-const-variable=]
 static const struct qcom_rpm_reg pm8921_ftsmps = {
                                  ^~~~~~~~~~~~~

Reported-by: Hulk Robot <hulkci@huawei.com>
Signed-off-by: Jason Yan <yanaijie@huawei.com>
---
 drivers/regulator/qcom_rpm-regulator.c | 10 ----------
 1 file changed, 10 deletions(-)

diff --git a/drivers/regulator/qcom_rpm-regulator.c b/drivers/regulator/qcom_rpm-regulator.c
index 7fc97f23fcf4..1ee8ec686ed3 100644
--- a/drivers/regulator/qcom_rpm-regulator.c
+++ b/drivers/regulator/qcom_rpm-regulator.c
@@ -604,16 +604,6 @@ static const struct qcom_rpm_reg pm8921_smps = {
 	.supports_force_mode_bypass = false,
 };
 
-static const struct qcom_rpm_reg pm8921_ftsmps = {
-	.desc.linear_ranges = ftsmps_ranges,
-	.desc.n_linear_ranges = ARRAY_SIZE(ftsmps_ranges),
-	.desc.n_voltages = 101,
-	.desc.ops = &uV_ops,
-	.parts = &rpm8960_smps_parts,
-	.supports_force_mode_auto = true,
-	.supports_force_mode_bypass = false,
-};
-
 static const struct qcom_rpm_reg pm8921_ncp = {
 	.desc.linear_ranges = ncp_ranges,
 	.desc.n_linear_ranges = ARRAY_SIZE(ncp_ranges),
-- 
2.17.2


^ permalink raw reply related	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2020-04-14 15:58 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2020-04-09 11:40 [PATCH] regulator: qcom_rpm: remove defined but not used 'pm8921_ftsmps' Jason Yan
2020-04-10  1:29 ` Bjorn Andersson
2020-04-14 15:58 ` Applied "regulator: qcom_rpm: remove defined but not used 'pm8921_ftsmps'" to the regulator tree Mark Brown

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.