spi: pxa2xx: Use ACPI_COMPANION() instead of acpi_bus_get_device()
authorJarkko Nikula <jarkko.nikula@linux.intel.com>
Fri, 25 Sep 2015 07:27:18 +0000 (10:27 +0300)
committerMark Brown <broonie@kernel.org>
Fri, 25 Sep 2015 16:52:19 +0000 (09:52 -0700)
commitb9f6940a437dcb8481df16b175359e126cf7bc33
tree2a9b0e36fb6e83a5ddee7075eb849c5d04be04af
parent0eca7cf2696506006463b9d67bb6110c82d3e064
spi: pxa2xx: Use ACPI_COMPANION() instead of acpi_bus_get_device()

Get pointer to the struct acpi_device by using ACPI_COMPANION() macro. This
is more efficient than using ACPI_HANDLE() and acpi_bus_get_device().

Signed-off-by: Jarkko Nikula <jarkko.nikula@linux.intel.com>
Signed-off-by: Mark Brown <broonie@kernel.org>
drivers/spi/spi-pxa2xx.c
This page took 0.025136 seconds and 5 git commands to generate.