]> git.karo-electronics.de Git - linux-beck.git/commitdiff
Staging: fbtft: Fix Sparse warnings
authorFrederic Jacob <frederic.jacob.78@gmail.com>
Sun, 8 Feb 2015 02:15:25 +0000 (21:15 -0500)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 2 Mar 2015 01:12:43 +0000 (17:12 -0800)
This fixes the folowing sparse warnings:

fb_hx8340bn.c:111:6: warning: symbol 'set_addr_win' was not declared. Should it be static?
fbtft_device.c:32:19: warning: symbol 'spi_device' was not declared. Should it be static?
fbtft_device.c:33:24: warning: symbol 'p_device' was not declared. Should it be static?

Signed-off-by: Frederic Jacob <frederic.jacob.78@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/fbtft/fb_hx8340bn.c
drivers/staging/fbtft/fbtft_device.c

index 3939502f2c81c3d4afe2077819f0bba1326c43df..26a987a68b07e8f18493416f8d8e4cdf3f0ed223 100644 (file)
@@ -108,7 +108,7 @@ static int init_display(struct fbtft_par *par)
        return 0;
 }
 
-void set_addr_win(struct fbtft_par *par, int xs, int ys, int xe, int ye)
+static void set_addr_win(struct fbtft_par *par, int xs, int ys, int xe, int ye)
 {
        fbtft_par_dbg(DEBUG_SET_ADDR_WIN, par,
                "%s(xs=%d, ys=%d, xe=%d, ye=%d)\n", __func__, xs, ys, xe, ye);
index 7cc169981c0d9bbef1e9c02f345b6e6633102282..dc48bcc9510e6b4a2224396bcf3bdd17874c9284 100644 (file)
@@ -29,8 +29,8 @@
 
 #define MAX_GPIOS 32
 
-struct spi_device *spi_device;
-struct platform_device *p_device;
+static struct spi_device *spi_device;
+static struct platform_device *p_device;
 
 static char *name;
 module_param(name, charp, 0);