diff mbox series

thermal/drivers/tsens: remove unused variable ops_v0_1

Message ID 20230617113837.3224912-1-trix@redhat.com (mailing list archive)
State New
Delegated to: Daniel Lezcano
Headers show
Series thermal/drivers/tsens: remove unused variable ops_v0_1 | expand

Commit Message

Tom Rix June 17, 2023, 11:38 a.m. UTC
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@redhat.com>
---
 drivers/thermal/qcom/tsens-v0_1.c | 6 ------
 1 file changed, 6 deletions(-)
diff mbox series

Patch

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,