staging: fbtft: Deduplicate driver registration macros
authorUwe Kleine-König <u.kleine-koenig@pengutronix.de>
Tue, 18 Jan 2022 18:13:38 +0000 (19:13 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 25 Jan 2022 15:35:37 +0000 (16:35 +0100)
commit39ddef5681839dc9949fd280ea65869a21fca23f
treec2ff9cbcbe9ec63fc895b571e5a94bee532102b2
parentca532a56ada46c206ea4a7f87ce34b38c274e57a
staging: fbtft: Deduplicate driver registration macros

The two macros FBTFT_REGISTER_DRIVER and FBTFT_REGISTER_SPI_DRIVER
contain quite some duplication: Both define an spi driver and an of device
table and the differences are quite subtle.

So create two new macros and use both twice.

Signed-off-by: Uwe Kleine-König <u.kleine-koenig@pengutronix.de>
Link: https://lore.kernel.org/r/20220118181338.207943-2-u.kleine-koenig@pengutronix.de
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/fbtft/fbtft.h