Commit 59768b2
committed
hw-mgmt: thermal: Fix thermal config default parameters apply for swbX_voltmon
On the sensor initialization, TC applies a default configuration based on
the sensor name. In this configuration, the name is defined as a regular
expression that is matched against the sensor_name.
For sensors with names like swb{}_voltmon{}_temp1, the default configuration
was not applied due to an incomplete regular expression in the default config.
Fix:
Change default config regexp to support both voltmon sensor name formats:
voltmon{}_temp1 and swb{}_voltmon{}_temp1.
r'voltmon\d+_temp' -> r'(swb\d+_)?voltmon\d+_temp'
Bug: 4661920
Signed-off-by: Oleksandr Shamray <[email protected]>1 parent 0edf6df commit 59768b2
File tree
2 files changed
+3
-3
lines changed- usr/usr/bin
2 files changed
+3
-3
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
282 | 282 | | |
283 | 283 | | |
284 | 284 | | |
285 | | - | |
| 285 | + | |
286 | 286 | | |
287 | 287 | | |
288 | 288 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
337 | 337 | | |
338 | 338 | | |
339 | 339 | | |
340 | | - | |
| 340 | + | |
341 | 341 | | |
342 | 342 | | |
343 | 343 | | |
| |||
364 | 364 | | |
365 | 365 | | |
366 | 366 | | |
367 | | - | |
| 367 | + | |
368 | 368 | | |
369 | 369 | | |
370 | 370 | | |
| |||
0 commit comments