thermal/drivers/tsens: remove unused variable ops_v0_1
Subsystems (3)
PATCH 1/1 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(-)
drivers/thermal/qcom/tsens-v0_1.c +0 -6
@@ -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,
Signature · 1 line
2.27.0