2023-06-17 12:18:26

by Tom Rix

[permalink] [raw]
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 <[email protected]>
---
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