]> git.baikalelectronics.ru Git - kernel.git/commit
spi: spidev: Replace OF specific code by device property API
authorAndy Shevchenko <andriy.shevchenko@linux.intel.com>
Wed, 23 Mar 2022 14:02:15 +0000 (16:02 +0200)
committerMark Brown <broonie@kernel.org>
Tue, 5 Apr 2022 09:21:50 +0000 (10:21 +0100)
commit5270afdeea6a89eb860e700c6a32e6a9d8722451
treedefcb03510229484b4f8cda685961b445cd09cb1
parent4b7c2a554c00266eb84211b8aba8c39f0f6162ce
spi: spidev: Replace OF specific code by device property API

Instead of calling the OF specific APIs, use device property ones.

It also prevents misusing PRP0001 in ACPI when trying to instantiate
spidev directly. We only support special SPI test devices there.

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