]> git.baikalelectronics.ru Git - kernel.git/commit
spi: pxa2xx-pci: Refactor CE4100 to use ->setup()
authorAndy Shevchenko <andriy.shevchenko@linux.intel.com>
Fri, 25 Feb 2022 17:23:40 +0000 (19:23 +0200)
committerMark Brown <broonie@kernel.org>
Mon, 28 Feb 2022 12:10:17 +0000 (12:10 +0000)
commita867afcbb08317adaac3e9a8ac6714624467bbd6
tree65e6c083f3b55e35de74b103da60dd7021a365e2
parent4be4ebd9b038effe3550ca65033e67fbb249baab
spi: pxa2xx-pci: Refactor CE4100 to use ->setup()

Refactor CE4100 handling code to use ->setup() instead of spreading
potentially confusing conditional.

Besides that, it will allow to refactor further to avoid intermediate
storage for the used configuration parameters.

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