ACPI: scan: Introduce a replacement for acpi_bus_get_device()
Get series with b4
b4 am 2828957.e9J7NaK4W3@kreacherVersions newest first
- v1 Latest2 patches 2 repliesIn review
Patches in v1 No applies recorded yet
| # | Subject and files | Size | Replies | Applied |
|---|---|---|---|---|
| 1/2 | ACPI: scan: Introduce acpi_fetch_acpi_dev()drivers/ include/ | +25 | 0 replies | |
| 2/2 | ACPI: Use acpi_fetch_acpi_dev() instead of acpi_bus_get_device()drivers/ drivers/ drivers/ +10 more | +50 | 0 replies |
Reviews trailers per patch
None of the 2 patches has a Reviewed-by or Acked-by of their own; the series has one for all of them.
| Patch | Hans de Goede | Mika Westerberg |
|---|---|---|
| Series | R-b | R-b |
| 1/2 | ||
| 2/2 |
Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.
Cover letter [PATCH 0/2] ACPI: scan: Introduce a replacement for acpi_bus_get_device()
Hi All,
Because acpi_bus_get_device() turned out to be problematic in the past, it has been changed to the point that its calling convention doesn't make much sense any more (ie. the pointer passed to it as the second argument is cleared on errors and it can only return one error value if that pointer is nonzero, so there is some duplication of information in there) and it has to make redundant checks.
Moreover, its name suggests some kind of reference counting which really isn't the case.
Thus patch [1/2] introduces a replacement for it, called acpi_fetch_acpi_dev(), and makes the code in scan.c use it instead of acpi_bus_get_device() internally.
Patch [2/2] updates all of the callers of acpi_bus_get_device() within the ACPI subsystem to use the replacement (which involves fixing a couple of bugs related to that).
Thanks!