spi: dw: Replace DWC_HSSI capability with IP-core version checker
authorSerge Semin <Sergey.Semin@baikalelectronics.ru>
Mon, 15 Nov 2021 18:19:16 +0000 (21:19 +0300)
committerMark Brown <broonie@kernel.org>
Tue, 16 Nov 2021 14:30:09 +0000 (14:30 +0000)
commit2b8a47e0b6984b9795baa20ddcbd37e9ea9b2a91
tree17c463c836086a9280abfa2b353db678e161b717
parent2cc8d9227bbba7d6f3790a86f1ff0d665a75f3b8
spi: dw: Replace DWC_HSSI capability with IP-core version checker

Since there is a common IP-core and component versions interface available
we can use it to differentiate the DW HSSI device features in the code.
Let's remove the corresponding DWC_HSSI capability flag then and use the
dw_spi_ip_is() macro instead.

Signed-off-by: Serge Semin <Sergey.Semin@baikalelectronics.ru>
Reviewed-by: Andy Shevchenko <andy.shevchenko@gmail.com>
Link: https://lore.kernel.org/r/20211115181917.7521-7-Sergey.Semin@baikalelectronics.ru
Signed-off-by: Mark Brown <broonie@kernel.org>
drivers/spi/spi-dw-core.c
drivers/spi/spi-dw-mmio.c
drivers/spi/spi-dw.h