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 <lkp@intel.com> Closes: https://lore.kernel.org/oe-kbuild-all/202505202356.S21Sc7bk-lkp@intel.com/ Signed-off-by: George Moussalem <george.moussalem@outlook.com> Reviewed-by: Dmitry Baryshkov <dmitry.baryshkov@oss.qualcomm.com> Link: https://patch.msgid.link/20250522-ipq5018-tsens-sparse-v1-1-97edaaaef27c@outlook.com Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
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)