* [PATCH] spi: Replace acpi_bus_get_device()
@ 2022-02-01 20:05 Rafael J. Wysocki
2022-02-02 18:16 ` Mark Brown
0 siblings, 1 reply; 2+ messages in thread
From: Rafael J. Wysocki @ 2022-02-01 20:05 UTC (permalink / raw)
To: Mark Brown; +Cc: linux-spi, LKML, Linux ACPI
From: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
Replace acpi_bus_get_device() that is going to be dropped with
acpi_fetch_acpi_dev().
No intentional functional impact.
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
---
drivers/spi/spi.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
Index: linux-pm/drivers/spi/spi.c
===================================================================
--- linux-pm.orig/drivers/spi/spi.c
+++ linux-pm/drivers/spi/spi.c
@@ -2480,10 +2480,10 @@ static acpi_status acpi_register_spi_dev
static acpi_status acpi_spi_add_device(acpi_handle handle, u32 level,
void *data, void **return_value)
{
+ struct acpi_device *adev = acpi_fetch_acpi_dev(handle);
struct spi_controller *ctlr = data;
- struct acpi_device *adev;
- if (acpi_bus_get_device(handle, &adev))
+ if (!adev)
return AE_OK;
return acpi_register_spi_device(ctlr, adev);
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: [PATCH] spi: Replace acpi_bus_get_device()
2022-02-01 20:05 [PATCH] spi: Replace acpi_bus_get_device() Rafael J. Wysocki
@ 2022-02-02 18:16 ` Mark Brown
0 siblings, 0 replies; 2+ messages in thread
From: Mark Brown @ 2022-02-02 18:16 UTC (permalink / raw)
To: Rafael J. Wysocki; +Cc: LKML, linux-spi, Linux ACPI
On Tue, 01 Feb 2022 21:05:59 +0100, Rafael J. Wysocki wrote:
> From: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
>
> Replace acpi_bus_get_device() that is going to be dropped with
> acpi_fetch_acpi_dev().
>
> No intentional functional impact.
>
> [...]
Applied to
https://git.kernel.org/pub/scm/linux/kernel/git/broonie/spi.git for-next
Thanks!
[1/1] spi: Replace acpi_bus_get_device()
commit: 7030c428fae100c339436f5cb6f9e7c0574097ad
All being well this means that it will be integrated into the linux-next
tree (usually sometime in the next 24 hours) and sent to Linus during
the next merge window (or sooner if it is a bug fix), however if
problems are discovered then the patch may be dropped or reverted.
You may get further e-mails resulting from automated or manual testing
and review of the tree, please engage with people reporting problems and
send followup patches addressing any issues that are reported if needed.
If any updates are required or you are submitting further changes they
should be sent as incremental updates against current git, existing
patches will not be replaced.
Please add any relevant lists and maintainers to the CCs when replying
to this mail.
Thanks,
Mark
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2022-02-02 18:16 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2022-02-01 20:05 [PATCH] spi: Replace acpi_bus_get_device() Rafael J. Wysocki
2022-02-02 18:16 ` Mark Brown
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox