[<prev] [next>] [day] [month] [year] [list]
Message-Id: <20230617113837.3224912-1-trix@redhat.com>
Date: Sat, 17 Jun 2023 07:38:37 -0400
From: Tom Rix <trix@...hat.com>
To: agross@...nel.org, andersson@...nel.org, konrad.dybcio@...aro.org,
amitk@...nel.org, thara.gopinath@...il.com, rafael@...nel.org,
daniel.lezcano@...aro.org, rui.zhang@...el.com
Cc: linux-arm-msm@...r.kernel.org, linux-pm@...r.kernel.org,
linux-kernel@...r.kernel.org, Tom Rix <trix@...hat.com>
Subject: [PATCH] thermal/drivers/tsens: remove unused variable ops_v0_1
gcc with W=1 reports
drivers/thermal/qcom/tsens-v0_1.c:328:31: error:
‘ops_v0_1’ defined but not used [-Werror=unused-const-variable=]
328 | static const struct tsens_ops ops_v0_1 = {
| ^~~~~~~~
This variable is not used, so remove it.
Signed-off-by: Tom Rix <trix@...hat.com>
---
drivers/thermal/qcom/tsens-v0_1.c | 6 ------
1 file changed, 6 deletions(-)
diff --git a/drivers/thermal/qcom/tsens-v0_1.c b/drivers/thermal/qcom/tsens-v0_1.c
index a941b4241b0a..0caf4628582c 100644
--- a/drivers/thermal/qcom/tsens-v0_1.c
+++ b/drivers/thermal/qcom/tsens-v0_1.c
@@ -325,12 +325,6 @@ static const struct reg_field tsens_v0_1_regfields[MAX_REGFIELDS] = {
[TRDY] = REG_FIELD(TM_TRDY_OFF, 0, 0),
};
-static const struct tsens_ops ops_v0_1 = {
- .init = init_common,
- .calibrate = tsens_calibrate_common,
- .get_temp = get_temp_common,
-};
-
static const struct tsens_ops ops_8226 = {
.init = init_8226,
.calibrate = tsens_calibrate_common,
--
2.27.0
Powered by blists - more mailing lists