]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit4ebda0476c218af1ce8b8d03ba4cbfbee41768b3
tree39dcac7a925da49fac774abcb583963d5476fe98
parentd56ccc5e08d9623b2a7a6fb2d3a9f6c51ab7451b
staging: fbtft: add macro FBTFT_REGISTER_SPI_DRIVER

After 8ab40eefa6b7 ("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