summaryrefslogtreecommitdiffstats
path: root/drivers/staging/fbtft/fbtft-core.c
diff options
context:
space:
mode:
authorJoe Perches2017-02-23 06:54:56 +0100
committerGreg Kroah-Hartman2017-03-06 09:16:59 +0100
commit0a859b31ec9c8bce9aacc9ccae3af6aab84b04c7 (patch)
treec798d87df60292fa341dfc6406179606c1ad0848 /drivers/staging/fbtft/fbtft-core.c
parentstaging:fbtft: Fix some warnings regarding types. (diff)
downloadkernel-qcow2-linux-0a859b31ec9c8bce9aacc9ccae3af6aab84b04c7.tar.gz
kernel-qcow2-linux-0a859b31ec9c8bce9aacc9ccae3af6aab84b04c7.tar.xz
kernel-qcow2-linux-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-core.c')
-rw-r--r--drivers/staging/fbtft/fbtft-core.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/staging/fbtft/fbtft-core.c b/drivers/staging/fbtft/fbtft-core.c
index f54851396fe9..b89183421cb2 100644
--- a/drivers/staging/fbtft/fbtft-core.c
+++ b/drivers/staging/fbtft/fbtft-core.c
@@ -658,7 +658,7 @@ struct fb_info *fbtft_framebuffer_alloc(struct fbtft_display *display,
unsigned int bpp = display->bpp;
unsigned int fps = display->fps;
int vmem_size, i;
- s16 *init_sequence = display->init_sequence;
+ const s16 *init_sequence = display->init_sequence;
char *gamma = display->gamma;
u32 *gamma_curves = NULL;