Commit b429b6f
committed
thermal: intel: intel_soc_dts_iosf: Always use 2 trips
Both the existing callers of intel_soc_dts_iosf_init() pass 2 as the trip
count argument, so it can be replaced with SOC_MAX_DTS_TRIPS everywhere in
the code and the trip_count argument of that function can be dropped.
This also allows the trip_count field to be dropped from struct
intel_soc_dts_sensor_entry, as it is always equal to 2, and some
related code can be simplified.
Make changes accordingly.
No intentional functional impact.
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
Reviewed-by: Srinivas Pandruvada <srinivas.pandruvada@linux.intel.com>1 parent e49c8ed commit b429b6f
4 files changed
Lines changed: 15 additions & 24 deletions
File tree
- drivers/thermal/intel
- int340x_thermal
Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
59 | 59 | | |
60 | 60 | | |
61 | 61 | | |
62 | | - | |
| 62 | + | |
63 | 63 | | |
64 | 64 | | |
65 | 65 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
37 | 37 | | |
38 | 38 | | |
39 | 39 | | |
40 | | - | |
41 | | - | |
42 | | - | |
43 | 40 | | |
44 | 41 | | |
45 | 42 | | |
| |||
253 | 250 | | |
254 | 251 | | |
255 | 252 | | |
256 | | - | |
257 | | - | |
| 253 | + | |
258 | 254 | | |
259 | 255 | | |
260 | 256 | | |
261 | | - | |
262 | 257 | | |
263 | 258 | | |
264 | 259 | | |
| |||
274 | 269 | | |
275 | 270 | | |
276 | 271 | | |
277 | | - | |
278 | | - | |
| 272 | + | |
279 | 273 | | |
280 | 274 | | |
281 | 275 | | |
| |||
290 | 284 | | |
291 | 285 | | |
292 | 286 | | |
293 | | - | |
294 | 287 | | |
295 | 288 | | |
296 | | - | |
| 289 | + | |
297 | 290 | | |
298 | 291 | | |
299 | 292 | | |
| |||
324 | 317 | | |
325 | 318 | | |
326 | 319 | | |
327 | | - | |
328 | 320 | | |
329 | 321 | | |
330 | | - | |
331 | | - | |
| 322 | + | |
| 323 | + | |
332 | 324 | | |
333 | 325 | | |
334 | 326 | | |
| |||
372 | 364 | | |
373 | 365 | | |
374 | 366 | | |
375 | | - | |
376 | | - | |
| 367 | + | |
377 | 368 | | |
378 | 369 | | |
379 | 370 | | |
| |||
384 | 375 | | |
385 | 376 | | |
386 | 377 | | |
387 | | - | |
| 378 | + | |
388 | 379 | | |
389 | 380 | | |
390 | 381 | | |
| |||
406 | 397 | | |
407 | 398 | | |
408 | 399 | | |
409 | | - | |
410 | | - | |
| 400 | + | |
411 | 401 | | |
412 | 402 | | |
413 | 403 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
12 | 12 | | |
13 | 13 | | |
14 | 14 | | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
15 | 18 | | |
16 | 19 | | |
17 | 20 | | |
| |||
26 | 29 | | |
27 | 30 | | |
28 | 31 | | |
29 | | - | |
30 | | - | |
| 32 | + | |
31 | 33 | | |
32 | 34 | | |
33 | 35 | | |
| |||
41 | 43 | | |
42 | 44 | | |
43 | 45 | | |
44 | | - | |
45 | | - | |
| 46 | + | |
46 | 47 | | |
47 | 48 | | |
48 | 49 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
51 | 51 | | |
52 | 52 | | |
53 | 53 | | |
54 | | - | |
| 54 | + | |
55 | 55 | | |
56 | 56 | | |
57 | 57 | | |
| |||
0 commit comments