]> git.baikalelectronics.ru Git - kernel.git/commit
spi: pxa2xx-pci: Do not dereference fwnode in struct device
authorAndy Shevchenko <andriy.shevchenko@linux.intel.com>
Wed, 23 Feb 2022 19:19:48 +0000 (21:19 +0200)
committerMark Brown <broonie@kernel.org>
Thu, 24 Feb 2022 13:43:51 +0000 (13:43 +0000)
commit2b894af8cb92e76605b6c8da64d5070dfb601769
treedc4d62466b38df31f50b74b330abee364f0df56b
parentb7020547d0eb5d397a1a980dc11de899e5de9bb3
spi: pxa2xx-pci: Do not dereference fwnode in struct device

In order to make the underneath API easier to change in the future,
prevent users from dereferencing fwnode from struct device.
Instead, use the specific dev_fwnode() API for that.

Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
Link: https://lore.kernel.org/r/20220223191948.31325-1-andriy.shevchenko@linux.intel.com
Signed-off-by: Mark Brown <broonie@kernel.org>
drivers/spi/spi-pxa2xx-pci.c