staging: fbtft: Deduplicate driver registration macros
authorUwe Kleine-König <u.kleine-koenig@pengutronix.de>
Sun, 23 Jan 2022 17:51:58 +0000 (18:51 +0100)
committerMark Brown <broonie@kernel.org>
Wed, 9 Feb 2022 13:00:41 +0000 (13:00 +0000)
commitc222ea5d2f3361458672d1f52c78970aa021cb61
treedfc17ba18d3c2c9dd8f8c87f54d54c9a2655fd91
parent7d8e4c98d13b6b54655140d6b6a6a17fbc9b32f1
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.

Link: https://lore.kernel.org/r/20220118181338.207943-2-u.kleine-koenig@pengutronix.de
Signed-off-by: Uwe Kleine-König <u.kleine-koenig@pengutronix.de>
Acked-by: Lee Jones <lee.jones@linaro.org>
Link: https://lore.kernel.org/r/20220123175201.34839-3-u.kleine-koenig@pengutronix.de
Signed-off-by: Mark Brown <broonie@kernel.org>
drivers/staging/fbtft/fbtft.h