diff options
author | Nicolas Pitre <npitre@baylibre.com> | 2024-04-01 23:25:45 -0400 |
---|---|---|
committer | Daniel Lezcano <daniel.lezcano@linaro.org> | 2024-04-23 12:40:30 +0200 |
commit | 11e6f4c3144743b2b2c26a5cd58ae3696379b3ab (patch) | |
tree | 858f4df1e322efdca189fb94b38cc9d2f9150833 /scripts/gdb/linux/mm.py | |
parent | 684cbb49f9ceed6be0f33dac9d62089e7cd1c032 (diff) |
thermal/drivers/mediatek/lvts_thermal: Allow early empty sensor slots
Some systems don't always populate sensor controller slots starting
at slot 0. Use a bitmap instead of a count to indicate valid sensor
slots. Also create a pretty iterator for that.
About that iterator: it causes checkpatch to complain with "ERROR:
Macros with multiple statements should be enclosed in a do - while
loop". However this is not possible here. And many similar iterators
do exist using the same form in the tree already.
Signed-off-by: Nicolas Pitre <npitre@baylibre.com>
Signed-off-by: Daniel Lezcano <daniel.lezcano@linaro.org>
Link: https://lore.kernel.org/r/20240402032729.2736685-12-nico@fluxnic.net
Diffstat (limited to 'scripts/gdb/linux/mm.py')
0 files changed, 0 insertions, 0 deletions