diff mbox series

[9/9] regulator: qcom_smd-regulator: Remove unused 'struct regulator_desc pmi8994_boost'

Message ID 20200626065738.93412-10-lee.jones@linaro.org
State Accepted
Commit bfa29acd18e53ff44135f2eae2b942419a8582cc
Headers show
Series None | expand

Commit Message

Lee Jones June 26, 2020, 6:57 a.m. UTC
This was an upstreaming error.  Remove it as it's not to be used.

Fixes the following W=1 kernel build warning:

 drivers/regulator/qcom_smd-regulator.c:477:36: warning: ‘pmi8994_boost’ defined but not used [-Wunused-const-variable=]

Cc: Andy Gross <agross@kernel.org>
Cc: Bjorn Andersson <bjorn.andersson@linaro.org>
Cc: linux-arm-msm@vger.kernel.org
Signed-off-by: Lee Jones <lee.jones@linaro.org>

---
 drivers/regulator/qcom_smd-regulator.c | 9 ---------
 1 file changed, 9 deletions(-)

-- 
2.25.1

Comments

Bjorn Andersson June 26, 2020, 7:19 a.m. UTC | #1
On Thu 25 Jun 23:57 PDT 2020, Lee Jones wrote:

> This was an upstreaming error.  Remove it as it's not to be used.

> 

> Fixes the following W=1 kernel build warning:

> 

>  drivers/regulator/qcom_smd-regulator.c:477:36: warning: ‘pmi8994_boost’ defined but not used [-Wunused-const-variable=]

> 

> Cc: Andy Gross <agross@kernel.org>

> Cc: Bjorn Andersson <bjorn.andersson@linaro.org>

> Cc: linux-arm-msm@vger.kernel.org

> Signed-off-by: Lee Jones <lee.jones@linaro.org>


Reviewed-by: Bjorn Andersson <bjorn.andersson@linaro.org>


Thanks,
Bjorn

> ---

>  drivers/regulator/qcom_smd-regulator.c | 9 ---------

>  1 file changed, 9 deletions(-)

> 

> diff --git a/drivers/regulator/qcom_smd-regulator.c b/drivers/regulator/qcom_smd-regulator.c

> index 53a64d856926f..4c0a469d8a115 100644

> --- a/drivers/regulator/qcom_smd-regulator.c

> +++ b/drivers/regulator/qcom_smd-regulator.c

> @@ -474,15 +474,6 @@ static const struct regulator_desc pmi8994_bby = {

>  	.ops = &rpm_bob_ops,

>  };

>  

> -static const struct regulator_desc pmi8994_boost = {

> -	.linear_ranges = (struct linear_range[]) {

> -		REGULATOR_LINEAR_RANGE(4000000, 0, 30, 50000),

> -	},

> -	.n_linear_ranges = 1,

> -	.n_voltages = 31,

> -	.ops = &rpm_smps_ldo_ops,

> -};

> -

>  static const struct regulator_desc pm8998_ftsmps = {

>  	.linear_ranges = (struct linear_range[]) {

>  		REGULATOR_LINEAR_RANGE(320000, 0, 258, 4000),

> -- 

> 2.25.1

>
diff mbox series

Patch

diff --git a/drivers/regulator/qcom_smd-regulator.c b/drivers/regulator/qcom_smd-regulator.c
index 53a64d856926f..4c0a469d8a115 100644
--- a/drivers/regulator/qcom_smd-regulator.c
+++ b/drivers/regulator/qcom_smd-regulator.c
@@ -474,15 +474,6 @@  static const struct regulator_desc pmi8994_bby = {
 	.ops = &rpm_bob_ops,
 };
 
-static const struct regulator_desc pmi8994_boost = {
-	.linear_ranges = (struct linear_range[]) {
-		REGULATOR_LINEAR_RANGE(4000000, 0, 30, 50000),
-	},
-	.n_linear_ranges = 1,
-	.n_voltages = 31,
-	.ops = &rpm_smps_ldo_ops,
-};
-
 static const struct regulator_desc pm8998_ftsmps = {
 	.linear_ranges = (struct linear_range[]) {
 		REGULATOR_LINEAR_RANGE(320000, 0, 258, 4000),