summaryrefslogtreecommitdiffstats
path: root/drivers/staging/fbtft/fbtft_device.c
diff options
context:
space:
mode:
authorFrederic Jacob <frederic.jacob.78@gmail.com>2015-02-07 21:15:25 -0500
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2015-03-01 17:12:43 -0800
commitcc060ed086995922cf36edc46359045092821cf2 (patch)
tree367c44ecddfef47dd539c04fee9d8e44584e82de /drivers/staging/fbtft/fbtft_device.c
parentbabcf83806cfd6cb7efe33d833146bd125938899 (diff)
downloadop-kernel-dev-cc060ed086995922cf36edc46359045092821cf2.zip
op-kernel-dev-cc060ed086995922cf36edc46359045092821cf2.tar.gz
Staging: fbtft: Fix Sparse warnings
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>
Diffstat (limited to 'drivers/staging/fbtft/fbtft_device.c')
-rw-r--r--drivers/staging/fbtft/fbtft_device.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/staging/fbtft/fbtft_device.c b/drivers/staging/fbtft/fbtft_device.c
index 7cc1699..dc48bcc 100644
--- a/drivers/staging/fbtft/fbtft_device.c
+++ b/drivers/staging/fbtft/fbtft_device.c
@@ -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);
OpenPOWER on IntegriCloud