* [PATCH] thermal/drivers/tsens: remove unused variable ops_v0_1
@ 2023-06-17 11:38 Tom Rix
0 siblings, 0 replies; only message in thread
From: Tom Rix @ 2023-06-17 11:38 UTC (permalink / raw)
To: agross, andersson, konrad.dybcio, amitk, thara.gopinath, rafael,
daniel.lezcano, rui.zhang
Cc: linux-arm-msm, linux-pm, linux-kernel, Tom Rix
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 --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
^ permalink raw reply related [flat|nested] only message in thread
only message in thread, other threads:[~2023-06-17 11:39 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2023-06-17 11:38 [PATCH] thermal/drivers/tsens: remove unused variable ops_v0_1 Tom Rix
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).