staging: fbtft: add macro FBTFT_REGISTER_SPI_DRIVER
authorHeiner Kallweit <hkallweit1@gmail.com>
Wed, 1 Dec 2021 21:02:47 +0000 (22:02 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 3 Dec 2021 14:05:12 +0000 (15:05 +0100)
commit15e66fc72925a4c1d641ec4b5ea857f4fe0f939f
tree39dcac7a925da49fac774abcb583963d5476fe98
parent24cd719712aeb5b5e4562f37ef5f7ba33040b59f
staging: fbtft: add macro FBTFT_REGISTER_SPI_DRIVER

After 5fa6863ba692 ("spi: Check we have a spi_device_id for each DT
compatible") we need to add spi id_tables. Changing existing macro
FBTFT_REGISTER_DRIVER would have meant to change arguments and
therefore adjust all fbtft drivers.

This patch adds a new and simplified macro FBTFT_REGISTER_SPI_DRIVER
that includes a spi id_table, and in addition to that:
- does not define a platform driver
- uses macro module_spi_driver()

Signed-off-by: Heiner Kallweit <hkallweit1@gmail.com>
Link: https://lore.kernel.org/r/a58b3bc9-27a2-3f16-dd92-e597666a0263@gmail.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/fbtft/fbtft.h