]> www.infradead.org Git - users/jedix/linux-maple.git/commit
thermal/debugfs: Adjust check for trips without statistics in tze_seq_show()
authorRafael J. Wysocki <rafael.j.wysocki@intel.com>
Tue, 28 May 2024 14:57:13 +0000 (16:57 +0200)
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>
Tue, 11 Jun 2024 19:04:21 +0000 (21:04 +0200)
commit993c87047ddebb9cf922c489199d3a402a440979
tree5969163c76fe7867c7ae86d0f4bf972fb3d9fe8d
parentea6a3c52021e552d904d0b1b67ef695bc5c3a54a
thermal/debugfs: Adjust check for trips without statistics in tze_seq_show()

Initialize the trip_temp field in struct trip_stats to
THERMAL_TEMP_INVALID and adjust the check for trips without
statistics in tze_seq_show() to look at that field instead of
comparing min and max.

This will mostly be useful to simplify subsequent changes.

No intentional functional impact.

Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
Acked-by: Daniel Lezcano <daniel.lezcano@linaro.org>
drivers/thermal/thermal_debugfs.c