aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/staging/fbtft/fbtft.h
diff options
context:
space:
mode:
authorJoe Perches <joe@perches.com>2017-02-22 21:54:56 -0800
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2017-03-06 09:16:59 +0100
commit0a859b31ec9c8bce9aacc9ccae3af6aab84b04c7 (patch)
treec798d87df60292fa341dfc6406179606c1ad0848 /drivers/staging/fbtft/fbtft.h
parentstaging:fbtft: Fix some warnings regarding types. (diff)
downloadlinux-dev-0a859b31ec9c8bce9aacc9ccae3af6aab84b04c7.tar.xz
linux-dev-0a859b31ec9c8bce9aacc9ccae3af6aab84b04c7.zip
staging: fbtft: Make the pointers to s16 init arrays const
This allows making some of the actual arrays const. Signed-off-by: Joe Perches <joe@perches.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/staging/fbtft/fbtft.h')
-rw-r--r--drivers/staging/fbtft/fbtft.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/staging/fbtft/fbtft.h b/drivers/staging/fbtft/fbtft.h
index 44cf94d160d4..119c3a72be1b 100644
--- a/drivers/staging/fbtft/fbtft.h
+++ b/drivers/staging/fbtft/fbtft.h
@@ -124,7 +124,7 @@ struct fbtft_display {
unsigned int bpp;
unsigned int fps;
int txbuflen;
- s16 *init_sequence;
+ const s16 *init_sequence;
char *gamma;
int gamma_num;
int gamma_len;
@@ -228,7 +228,7 @@ struct fbtft_par {
int led[16];
int aux[16];
} gpio;
- s16 *init_sequence;
+ const s16 *init_sequence;
struct {
struct mutex lock;
u32 *curves;