Skip to content

Commit 01daf71

Browse files
georgemoussalemrafaeljw
authored andcommitted
thermal: qcom: ipq5018: make ops_ipq5018 struct static
Fix a sparse warning by making the ops_ipq5018 struct static. Fixes: 04b31cc ("thermal/drivers/qcom/tsens: Add support for IPQ5018 tsens") Reported-by: kernel test robot <[email protected]> Closes: https://lore.kernel.org/oe-kbuild-all/[email protected]/ Signed-off-by: George Moussalem <[email protected]> Reviewed-by: Dmitry Baryshkov <[email protected]> Link: https://patch.msgid.link/[email protected] Signed-off-by: Rafael J. Wysocki <[email protected]>
1 parent 18e8990 commit 01daf71

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

drivers/thermal/qcom/tsens-v1.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -243,7 +243,7 @@ struct tsens_plat_data data_8976 = {
243243
.fields = tsens_v1_regfields,
244244
};
245245

246-
const struct tsens_ops ops_ipq5018 = {
246+
static const struct tsens_ops ops_ipq5018 = {
247247
.init = init_tsens_v1_no_rpm,
248248
.calibrate = tsens_calibrate_common,
249249
.get_temp = get_temp_tsens_valid,

0 commit comments

Comments
 (0)