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>
This commit is contained in:
Joe Perches 2017-02-22 21:54:56 -08:00 committed by Greg Kroah-Hartman
parent eb1d69c21c
commit 0a859b31ec
3 changed files with 5 additions and 5 deletions

View File

@ -658,7 +658,7 @@ struct fb_info *fbtft_framebuffer_alloc(struct fbtft_display *display,
unsigned int bpp = display->bpp; unsigned int bpp = display->bpp;
unsigned int fps = display->fps; unsigned int fps = display->fps;
int vmem_size, i; int vmem_size, i;
s16 *init_sequence = display->init_sequence; const s16 *init_sequence = display->init_sequence;
char *gamma = display->gamma; char *gamma = display->gamma;
u32 *gamma_curves = NULL; u32 *gamma_curves = NULL;

View File

@ -124,7 +124,7 @@ struct fbtft_display {
unsigned int bpp; unsigned int bpp;
unsigned int fps; unsigned int fps;
int txbuflen; int txbuflen;
s16 *init_sequence; const s16 *init_sequence;
char *gamma; char *gamma;
int gamma_num; int gamma_num;
int gamma_len; int gamma_len;
@ -228,7 +228,7 @@ struct fbtft_par {
int led[16]; int led[16];
int aux[16]; int aux[16];
} gpio; } gpio;
s16 *init_sequence; const s16 *init_sequence;
struct { struct {
struct mutex lock; struct mutex lock;
u32 *curves; u32 *curves;

View File

@ -63,7 +63,7 @@ static bool latched;
module_param(latched, bool, 0000); module_param(latched, bool, 0000);
MODULE_PARM_DESC(latched, "Use with latched 16-bit databus"); MODULE_PARM_DESC(latched, "Use with latched 16-bit databus");
static s16 *initp; static const s16 *initp;
static int initp_num; static int initp_num;
/* default init sequences */ /* default init sequences */
@ -390,7 +390,7 @@ struct flexfb_lcd_controller {
unsigned int height; unsigned int height;
unsigned int setaddrwin; unsigned int setaddrwin;
unsigned int regwidth; unsigned int regwidth;
s16 *init_seq; const s16 *init_seq;
int init_seq_sz; int init_seq_sz;
}; };