[prev in list] [next in list] [prev in thread] [next in thread] 

List:       git-commits-head
Subject:    staging: fbtft: ili9341: use macro FBTFT_REGISTER_SPI_DRIVER
From:       Linux Kernel Mailing List <linux-kernel () vger ! kernel ! org>
Date:       2023-07-30 19:43:47
Message-ID: git-mailbomb-linux-master-4912649e1cf0317bf563f91655e04a303cacaf8d () kernel ! org
[Download RAW message or body]

Commit:     4912649e1cf0317bf563f91655e04a303cacaf8d
Parent:     ac83631230f77dda94154ed0ebfd368fc81c70a3
Refname:    refs/heads/master
Web:        https://git.kernel.org/torvalds/c/4912649e1cf0317bf563f91655e04a303cacaf8d
Author:     Raphael Gallais-Pou <rgallaispou@gmail.com>
AuthorDate: Tue Jul 18 19:20:24 2023 +0200
Committer:  Greg Kroah-Hartman <gregkh@linuxfoundation.org>
CommitDate: Thu Jul 27 09:53:37 2023 +0200

    staging: fbtft: ili9341: use macro FBTFT_REGISTER_SPI_DRIVER
    
    Using FBTFT_REGISTER_DRIVER resolves to a NULL struct spi_device_id. This
    ultimately causes a warning when the module probes. Fixes it.
    
    Signed-off-by: Raphael Gallais-Pou <rgallaispou@gmail.com>
    Link: https://lore.kernel.org/r/20230718172024.67488-1-rgallaispou@gmail.com
    Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
---
 drivers/staging/fbtft/fb_ili9341.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/staging/fbtft/fb_ili9341.c b/drivers/staging/fbtft/fb_ili9341.c
index 9ccd0823c3ab3..47e72b87d76d9 100644
--- a/drivers/staging/fbtft/fb_ili9341.c
+++ b/drivers/staging/fbtft/fb_ili9341.c
@@ -145,7 +145,7 @@ static struct fbtft_display display = {
 	},
 };
 
-FBTFT_REGISTER_DRIVER(DRVNAME, "ilitek,ili9341", &display);
+FBTFT_REGISTER_SPI_DRIVER(DRVNAME, "ilitek", "ili9341", &display);
 
 MODULE_ALIAS("spi:" DRVNAME);
 MODULE_ALIAS("platform:" DRVNAME);
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic