]> Gentwo Git Trees - linux/.git/commit
spi: nxp-fspi: Propagate fwnode in ACPI case as well
authorAndy Shevchenko <andriy.shevchenko@linux.intel.com>
Wed, 26 Nov 2025 20:25:01 +0000 (21:25 +0100)
committerMark Brown <broonie@kernel.org>
Thu, 27 Nov 2025 11:41:06 +0000 (11:41 +0000)
commit40ad64ac25bb736740f895d99a4aebbda9b80991
treea68597443ffbc4d3fac6a1fd2a169318b39a88d6
parent3dcf44ab56e1d3ca3532083c0d5390b758e45b45
spi: nxp-fspi: Propagate fwnode in ACPI case as well

Propagate fwnode of the ACPI device to the SPI controller Linux device.
Currently only OF case propagates fwnode to the controller.

While at it, replace several calls to dev_fwnode() with a single one
cached in a local variable, and unify checks for fwnode type by using
is_*_node() APIs.

Fixes: 55ab8487e01d ("spi: spi-nxp-fspi: Add ACPI support")
Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
Reviewed-by: Haibo Chen <haibo.chen@nxp.com>
Link: https://patch.msgid.link/20251126202501.2319679-1-andriy.shevchenko@linux.intel.com
Signed-off-by: Mark Brown <broonie@kernel.org>
drivers/spi/spi-nxp-fspi.c