diff options
author | Mauro Stettler <mauro.stettler@gmail.com> | 2015-01-25 20:26:17 +0900 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2015-01-28 11:22:20 -0800 |
commit | 462125b4ad255eafcd114e17bdc924d755da1567 (patch) | |
tree | f37797592e4106818241e11811e05e287128dc99 /drivers/staging/fbtft | |
parent | 023e89c00b6d914d39b2e2cc48706a198e3a1d7a (diff) |
staging: flexfb: Remove initialization to 0
(the initial post had a typo in the short summary, reposting)
This fixes some of the code style issues in the flexfb driver by removing
unnecessary initializations of static variables to 0 or to NULL.
Signed-off-by: Mauro Stettler <mauro.stettler@gmail.com>
Cc: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Cc: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
Cc: Noralf Tronnes <notro@tronnes.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/staging/fbtft')
-rw-r--r-- | drivers/staging/fbtft/flexfb.c | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/drivers/staging/fbtft/flexfb.c b/drivers/staging/fbtft/flexfb.c index 45574a0c6a15..4eec888a45b0 100644 --- a/drivers/staging/fbtft/flexfb.c +++ b/drivers/staging/fbtft/flexfb.c @@ -31,24 +31,24 @@ #define DRVNAME "flexfb" -static char *chip = NULL; +static char *chip; module_param(chip, charp, 0); MODULE_PARM_DESC(chip, "LCD controller"); -static unsigned int width = 0; +static unsigned int width; module_param(width, uint, 0); MODULE_PARM_DESC(width, "Display width"); -static unsigned int height = 0; +static unsigned int height; module_param(height, uint, 0); MODULE_PARM_DESC(height, "Display height"); static int init[512]; -static int init_num = 0; +static int init_num; module_param_array(init, int, &init_num, 0); MODULE_PARM_DESC(init, "Init sequence"); -static unsigned int setaddrwin = 0; +static unsigned int setaddrwin; module_param(setaddrwin, uint, 0); MODULE_PARM_DESC(setaddrwin, "Which set_addr_win() implementation to use"); @@ -60,17 +60,17 @@ static unsigned int regwidth = 8; module_param(regwidth, uint, 0); MODULE_PARM_DESC(regwidth, "Width of controller register (default: 8)"); -static bool nobacklight = false; +static bool nobacklight; module_param(nobacklight, bool, 0); MODULE_PARM_DESC(nobacklight, "Turn off backlight functionality."); -static bool latched = false; +static bool latched; module_param(latched, bool, 0); MODULE_PARM_DESC(latched, "Use with latched 16-bit databus"); -static int *initp = NULL; -static int initp_num = 0; +static int *initp; +static int initp_num; /* default init sequences */ static int st7735r_init[] = { \ |