diff options
author | Abdul Rauf <abdulraufmujahid@gmail.com> | 2017-01-24 00:20:10 +0000 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2017-01-25 11:33:21 +0100 |
commit | ced04842d282a81b71c5d875340cee0fe4aedd2c (patch) | |
tree | e3b82be024622f2a53ad7ddee97b047e7ce26b13 | |
parent | dec9fcd03284c227e2f27a52451e9e494f0f4679 (diff) | |
download | blackbird-obmc-linux-ced04842d282a81b71c5d875340cee0fe4aedd2c.tar.gz blackbird-obmc-linux-ced04842d282a81b71c5d875340cee0fe4aedd2c.zip |
staging: fbtft: fix checkpatch decimal permissions error
Fix the following errors:
Use 4 digit octal (0777) not decimal permissions
Signed-off-by: Abdul Rauf <abdulraufmujahid@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
-rw-r--r-- | drivers/staging/fbtft/fb_hx8340bn.c | 2 | ||||
-rw-r--r-- | drivers/staging/fbtft/fb_pcd8544.c | 4 | ||||
-rw-r--r-- | drivers/staging/fbtft/fb_ssd1289.c | 2 | ||||
-rw-r--r-- | drivers/staging/fbtft/fb_tls8204.c | 2 | ||||
-rw-r--r-- | drivers/staging/fbtft/fb_uc1611.c | 12 | ||||
-rw-r--r-- | drivers/staging/fbtft/fb_watterott.c | 2 | ||||
-rw-r--r-- | drivers/staging/fbtft/fbtft-core.c | 2 | ||||
-rw-r--r-- | drivers/staging/fbtft/fbtft_device.c | 38 |
8 files changed, 32 insertions, 32 deletions
diff --git a/drivers/staging/fbtft/fb_hx8340bn.c b/drivers/staging/fbtft/fb_hx8340bn.c index 9970ed74bb38..c24331cc179c 100644 --- a/drivers/staging/fbtft/fb_hx8340bn.c +++ b/drivers/staging/fbtft/fb_hx8340bn.c @@ -37,7 +37,7 @@ "3 3 17 8 4 7 05 7 6 0 3 1 6 0 0 " static bool emulate; -module_param(emulate, bool, 0); +module_param(emulate, bool, 0000); MODULE_PARM_DESC(emulate, "Force emulation in 9-bit mode"); static int init_display(struct fbtft_par *par) diff --git a/drivers/staging/fbtft/fb_pcd8544.c b/drivers/staging/fbtft/fb_pcd8544.c index a4710dc067ef..636cc83594bc 100644 --- a/drivers/staging/fbtft/fb_pcd8544.c +++ b/drivers/staging/fbtft/fb_pcd8544.c @@ -33,11 +33,11 @@ #define DEFAULT_GAMMA "40" /* gamma controls the contrast in this driver */ static unsigned int tc; -module_param(tc, uint, 0); +module_param(tc, uint, 0000); MODULE_PARM_DESC(tc, "TC[1:0] Temperature coefficient: 0-3 (default: 0)"); static unsigned int bs = 4; -module_param(bs, uint, 0); +module_param(bs, uint, 0000); MODULE_PARM_DESC(bs, "BS[2:0] Bias voltage level: 0-7 (default: 4)"); static int init_display(struct fbtft_par *par) diff --git a/drivers/staging/fbtft/fb_ssd1289.c b/drivers/staging/fbtft/fb_ssd1289.c index 25f9fbe1e76f..6dc085846948 100644 --- a/drivers/staging/fbtft/fb_ssd1289.c +++ b/drivers/staging/fbtft/fb_ssd1289.c @@ -30,7 +30,7 @@ "02 03 2 5 7 5 4 2 4 2" static unsigned int reg11 = 0x6040; -module_param(reg11, uint, 0); +module_param(reg11, uint, 0000); MODULE_PARM_DESC(reg11, "Register 11h value"); static int init_display(struct fbtft_par *par) diff --git a/drivers/staging/fbtft/fb_tls8204.c b/drivers/staging/fbtft/fb_tls8204.c index ea2ddacb9468..ae8393b023e4 100644 --- a/drivers/staging/fbtft/fb_tls8204.c +++ b/drivers/staging/fbtft/fb_tls8204.c @@ -36,7 +36,7 @@ #define DEFAULT_GAMMA "40" static unsigned int bs = 4; -module_param(bs, uint, 0); +module_param(bs, uint, 0000); MODULE_PARM_DESC(bs, "BS[2:0] Bias voltage level: 0-7 (default: 4)"); static int init_display(struct fbtft_par *par) diff --git a/drivers/staging/fbtft/fb_uc1611.c b/drivers/staging/fbtft/fb_uc1611.c index b33b73f17da4..48e3b3fd9fed 100644 --- a/drivers/staging/fbtft/fb_uc1611.c +++ b/drivers/staging/fbtft/fb_uc1611.c @@ -42,30 +42,30 @@ /* BR -> actual ratio: 0-3 -> 5, 10, 11, 13 */ static unsigned int ratio = 2; -module_param(ratio, uint, 0); +module_param(ratio, uint, 0000); MODULE_PARM_DESC(ratio, "BR[1:0] Bias voltage ratio: 0-3 (default: 2)"); static unsigned int gain = 3; -module_param(gain, uint, 0); +module_param(gain, uint, 0000); MODULE_PARM_DESC(gain, "GN[1:0] Bias voltage gain: 0-3 (default: 3)"); static unsigned int pot = 16; -module_param(pot, uint, 0); +module_param(pot, uint, 0000); MODULE_PARM_DESC(pot, "PM[6:0] Bias voltage pot.: 0-63 (default: 16)"); /* TC -> % compensation per deg C: 0-3 -> -.05, -.10, -.015, -.20 */ static unsigned int temp; -module_param(temp, uint, 0); +module_param(temp, uint, 0000); MODULE_PARM_DESC(temp, "TC[1:0] Temperature compensation: 0-3 (default: 0)"); /* PC[1:0] -> LCD capacitance: 0-3 -> <20nF, 20-28 nF, 29-40 nF, 40-56 nF */ static unsigned int load = 1; -module_param(load, uint, 0); +module_param(load, uint, 0000); MODULE_PARM_DESC(load, "PC[1:0] Panel Loading: 0-3 (default: 1)"); /* PC[3:2] -> V_LCD: 0, 1, 3 -> ext., int. with ratio = 5, int. standard */ static unsigned int pump = 3; -module_param(pump, uint, 0); +module_param(pump, uint, 0000); MODULE_PARM_DESC(pump, "PC[3:2] Pump control: 0,1,3 (default: 3)"); static int init_display(struct fbtft_par *par) diff --git a/drivers/staging/fbtft/fb_watterott.c b/drivers/staging/fbtft/fb_watterott.c index a52e28a48825..429304546b44 100644 --- a/drivers/staging/fbtft/fb_watterott.c +++ b/drivers/staging/fbtft/fb_watterott.c @@ -40,7 +40,7 @@ #define COLOR_RGB565 16 static short mode = 565; -module_param(mode, short, 0); +module_param(mode, short, 0000); MODULE_PARM_DESC(mode, "RGB color transfer mode: 332, 565 (default)"); static void write_reg8_bus8(struct fbtft_par *par, int len, ...) diff --git a/drivers/staging/fbtft/fbtft-core.c b/drivers/staging/fbtft/fbtft-core.c index 4e13090c7fbd..51c4481db451 100644 --- a/drivers/staging/fbtft/fbtft-core.c +++ b/drivers/staging/fbtft/fbtft-core.c @@ -40,7 +40,7 @@ #include "internal.h" static unsigned long debug; -module_param(debug, ulong, 0); +module_param(debug, ulong, 0000); MODULE_PARM_DESC(debug, "override device debug level"); void fbtft_dbg_hex(const struct device *dev, int groupsize, diff --git a/drivers/staging/fbtft/fbtft_device.c b/drivers/staging/fbtft/fbtft_device.c index de46f8d988d2..9ffb9cecc465 100644 --- a/drivers/staging/fbtft/fbtft_device.c +++ b/drivers/staging/fbtft/fbtft_device.c @@ -29,85 +29,85 @@ static struct spi_device *spi_device; static struct platform_device *p_device; static char *name; -module_param(name, charp, 0); +module_param(name, charp, 0000); MODULE_PARM_DESC(name, "Devicename (required). name=list => list all supported devices."); static unsigned int rotate; -module_param(rotate, uint, 0); +module_param(rotate, uint, 0000); MODULE_PARM_DESC(rotate, "Angle to rotate display counter clockwise: 0, 90, 180, 270"); static unsigned int busnum; -module_param(busnum, uint, 0); +module_param(busnum, uint, 0000); MODULE_PARM_DESC(busnum, "SPI bus number (default=0)"); static unsigned int cs; -module_param(cs, uint, 0); +module_param(cs, uint, 0000); MODULE_PARM_DESC(cs, "SPI chip select (default=0)"); static unsigned int speed; -module_param(speed, uint, 0); +module_param(speed, uint, 0000); MODULE_PARM_DESC(speed, "SPI speed (override device default)"); static int mode = -1; -module_param(mode, int, 0); +module_param(mode, int, 0000); MODULE_PARM_DESC(mode, "SPI mode (override device default)"); static char *gpios; -module_param(gpios, charp, 0); +module_param(gpios, charp, 0000); MODULE_PARM_DESC(gpios, "List of gpios. Comma separated with the form: reset:23,dc:24 (when overriding the default, all gpios must be specified)"); static unsigned int fps; -module_param(fps, uint, 0); +module_param(fps, uint, 0000); MODULE_PARM_DESC(fps, "Frames per second (override driver default)"); static char *gamma; -module_param(gamma, charp, 0); +module_param(gamma, charp, 0000); MODULE_PARM_DESC(gamma, "String representation of Gamma Curve(s). Driver specific."); static int txbuflen; -module_param(txbuflen, int, 0); +module_param(txbuflen, int, 0000); MODULE_PARM_DESC(txbuflen, "txbuflen (override driver default)"); static int bgr = -1; -module_param(bgr, int, 0); +module_param(bgr, int, 0000); MODULE_PARM_DESC(bgr, "BGR bit (supported by some drivers)."); static unsigned int startbyte; -module_param(startbyte, uint, 0); +module_param(startbyte, uint, 0000); MODULE_PARM_DESC(startbyte, "Sets the Start byte used by some SPI displays."); static bool custom; -module_param(custom, bool, 0); +module_param(custom, bool, 0000); MODULE_PARM_DESC(custom, "Add a custom display device. Use speed= argument to make it a SPI device, else platform_device"); static unsigned int width; -module_param(width, uint, 0); +module_param(width, uint, 0000); MODULE_PARM_DESC(width, "Display width, used with the custom argument"); static unsigned int height; -module_param(height, uint, 0); +module_param(height, uint, 0000); MODULE_PARM_DESC(height, "Display height, used with the custom argument"); static unsigned int buswidth = 8; -module_param(buswidth, uint, 0); +module_param(buswidth, uint, 0000); MODULE_PARM_DESC(buswidth, "Display bus width, used with the custom argument"); static s16 init[FBTFT_MAX_INIT_SEQUENCE]; static int init_num; -module_param_array(init, short, &init_num, 0); +module_param_array(init, short, &init_num, 0000); MODULE_PARM_DESC(init, "Init sequence, used with the custom argument"); static unsigned long debug; -module_param(debug, ulong, 0); +module_param(debug, ulong, 0000); MODULE_PARM_DESC(debug, "level: 0-7 (the remaining 29 bits is for advanced usage)"); static unsigned int verbose = 3; -module_param(verbose, uint, 0); +module_param(verbose, uint, 0000); MODULE_PARM_DESC(verbose, "0 silent, >0 show gpios, >1 show devices, >2 show devices before (default=3)"); |