Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

staging: fbtft: sh1106: use new macro FBTFT_REGISTER_SPI_DRIVER

Make fb_sh1106 the first user of new macro FBTFT_REGISTER_SPI_DRIVER.
In addition the MODULE_ALIASes can be removed. Module auto-loading
was successfully tested with a SH1106-based OLED module connected
to an Odroid C2.

Signed-off-by: Heiner Kallweit <hkallweit1@gmail.com>
Link: https://lore.kernel.org/r/65516be1-9588-af00-cf4f-053e20af9b45@gmail.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>

authored by

Heiner Kallweit and committed by
Greg Kroah-Hartman
d9367afb 15e66fc7

+1 -6
+1 -6
drivers/staging/fbtft/fb_sh1106.c
··· 173 173 }, 174 174 }; 175 175 176 - FBTFT_REGISTER_DRIVER(DRVNAME, "sinowealth,sh1106", &display); 177 - 178 - MODULE_ALIAS("spi:" DRVNAME); 179 - MODULE_ALIAS("platform:" DRVNAME); 180 - MODULE_ALIAS("spi:sh1106"); 181 - MODULE_ALIAS("platform:sh1106"); 176 + FBTFT_REGISTER_SPI_DRIVER(DRVNAME, "sinowealth", "sh1106", &display); 182 177 183 178 MODULE_DESCRIPTION("SH1106 OLED Driver"); 184 179 MODULE_AUTHOR("Heiner Kallweit");