Commit 3ce3f56
committed
PM: core: Add two macros for walking device links
Add separate macros for walking links to suppliers and consumers of a
device to help device links users to avoid exposing the internals of
struct dev_links_info in their code and possible coding mistakes related
to that.
Accordingly, use the new macros to replace open-coded device links list
walks in the core power management code.
No intentional functional impact.
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
Reviewed-by: Ulf Hansson <ulf.hansson@linaro.org>
Acked-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Link: https://patch.msgid.link/1944671.tdWV9SEqCh@rafael.j.wysocki1 parent fdd9ae2 commit 3ce3f56
3 files changed
Lines changed: 16 additions & 13 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
251 | 251 | | |
252 | 252 | | |
253 | 253 | | |
| 254 | + | |
| 255 | + | |
| 256 | + | |
| 257 | + | |
| 258 | + | |
| 259 | + | |
| 260 | + | |
| 261 | + | |
254 | 262 | | |
255 | 263 | | |
256 | 264 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
40 | 40 | | |
41 | 41 | | |
42 | 42 | | |
43 | | - | |
44 | | - | |
45 | | - | |
46 | | - | |
47 | 43 | | |
48 | 44 | | |
49 | 45 | | |
| |||
281 | 277 | | |
282 | 278 | | |
283 | 279 | | |
284 | | - | |
| 280 | + | |
285 | 281 | | |
286 | 282 | | |
287 | 283 | | |
| |||
338 | 334 | | |
339 | 335 | | |
340 | 336 | | |
341 | | - | |
| 337 | + | |
342 | 338 | | |
343 | 339 | | |
344 | 340 | | |
| |||
675 | 671 | | |
676 | 672 | | |
677 | 673 | | |
678 | | - | |
| 674 | + | |
679 | 675 | | |
680 | 676 | | |
681 | 677 | | |
| |||
1330 | 1326 | | |
1331 | 1327 | | |
1332 | 1328 | | |
1333 | | - | |
| 1329 | + | |
1334 | 1330 | | |
1335 | 1331 | | |
1336 | 1332 | | |
| |||
1384 | 1380 | | |
1385 | 1381 | | |
1386 | 1382 | | |
1387 | | - | |
| 1383 | + | |
1388 | 1384 | | |
1389 | 1385 | | |
1390 | 1386 | | |
| |||
1813 | 1809 | | |
1814 | 1810 | | |
1815 | 1811 | | |
1816 | | - | |
| 1812 | + | |
1817 | 1813 | | |
1818 | 1814 | | |
1819 | 1815 | | |
| |||
2065 | 2061 | | |
2066 | 2062 | | |
2067 | 2063 | | |
2068 | | - | |
| 2064 | + | |
2069 | 2065 | | |
2070 | 2066 | | |
2071 | 2067 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1903 | 1903 | | |
1904 | 1904 | | |
1905 | 1905 | | |
1906 | | - | |
1907 | | - | |
| 1906 | + | |
1908 | 1907 | | |
1909 | 1908 | | |
1910 | 1909 | | |
| |||
0 commit comments