Commit cca8a7e
ACPI: scan: Add acpi_dev_get_next_consumer_dev()
In commit b83e2b3 ("ACPI: scan: Add function to fetch dependent
of ACPI device") we added a means of fetching the first device to
declare itself dependent on another ACPI device in the _DEP method.
One assumption in that patch was that there would only be a single
consuming device, but this has not held.
Replace that function with a new function that fetches the next consumer
of a supplier device. Where no "previous" consumer is passed in, it
behaves identically to the original function.
Reviewed-by: Hans de Goede <[email protected]>
Signed-off-by: Daniel Scally <[email protected]>
Signed-off-by: Rafael J. Wysocki <[email protected]>1 parent 9837895 commit cca8a7e
File tree
3 files changed
+34
-12
lines changed- drivers
- acpi
- platform/x86/intel/int3472
- include/acpi
3 files changed
+34
-12
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2235 | 2235 | | |
2236 | 2236 | | |
2237 | 2237 | | |
2238 | | - | |
| 2238 | + | |
2239 | 2239 | | |
2240 | | - | |
| 2240 | + | |
| 2241 | + | |
| 2242 | + | |
| 2243 | + | |
| 2244 | + | |
| 2245 | + | |
| 2246 | + | |
| 2247 | + | |
| 2248 | + | |
| 2249 | + | |
| 2250 | + | |
| 2251 | + | |
| 2252 | + | |
| 2253 | + | |
2241 | 2254 | | |
2242 | 2255 | | |
2243 | 2256 | | |
| |||
2368 | 2381 | | |
2369 | 2382 | | |
2370 | 2383 | | |
2371 | | - | |
| 2384 | + | |
2372 | 2385 | | |
| 2386 | + | |
2373 | 2387 | | |
2374 | | - | |
| 2388 | + | |
2375 | 2389 | | |
2376 | 2390 | | |
2377 | | - | |
2378 | | - | |
| 2391 | + | |
| 2392 | + | |
2379 | 2393 | | |
2380 | | - | |
| 2394 | + | |
| 2395 | + | |
2381 | 2396 | | |
2382 | | - | |
| 2397 | + | |
2383 | 2398 | | |
2384 | 2399 | | |
2385 | | - | |
| 2400 | + | |
| 2401 | + | |
| 2402 | + | |
| 2403 | + | |
| 2404 | + | |
| 2405 | + | |
2386 | 2406 | | |
2387 | 2407 | | |
2388 | 2408 | | |
2389 | | - | |
| 2409 | + | |
2390 | 2410 | | |
2391 | 2411 | | |
2392 | 2412 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
62 | 62 | | |
63 | 63 | | |
64 | 64 | | |
65 | | - | |
| 65 | + | |
66 | 66 | | |
67 | 67 | | |
68 | 68 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
742 | 742 | | |
743 | 743 | | |
744 | 744 | | |
745 | | - | |
| 745 | + | |
| 746 | + | |
| 747 | + | |
746 | 748 | | |
747 | 749 | | |
748 | 750 | | |
| |||
0 commit comments