Commit ced04842 authored by Abdul Rauf's avatar Abdul Rauf Committed by Greg Kroah-Hartman

staging: fbtft: fix checkpatch decimal permissions error

Fix the following errors:
Use 4 digit octal (0777) not decimal permissions
Signed-off-by: default avatarAbdul Rauf <abdulraufmujahid@gmail.com>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent dec9fcd0
...@@ -37,7 +37,7 @@ ...@@ -37,7 +37,7 @@
"3 3 17 8 4 7 05 7 6 0 3 1 6 0 0 " "3 3 17 8 4 7 05 7 6 0 3 1 6 0 0 "
static bool emulate; static bool emulate;
module_param(emulate, bool, 0); module_param(emulate, bool, 0000);
MODULE_PARM_DESC(emulate, "Force emulation in 9-bit mode"); MODULE_PARM_DESC(emulate, "Force emulation in 9-bit mode");
static int init_display(struct fbtft_par *par) static int init_display(struct fbtft_par *par)
......
...@@ -33,11 +33,11 @@ ...@@ -33,11 +33,11 @@
#define DEFAULT_GAMMA "40" /* gamma controls the contrast in this driver */ #define DEFAULT_GAMMA "40" /* gamma controls the contrast in this driver */
static unsigned int tc; 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)"); MODULE_PARM_DESC(tc, "TC[1:0] Temperature coefficient: 0-3 (default: 0)");
static unsigned int bs = 4; 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)"); MODULE_PARM_DESC(bs, "BS[2:0] Bias voltage level: 0-7 (default: 4)");
static int init_display(struct fbtft_par *par) static int init_display(struct fbtft_par *par)
......
...@@ -30,7 +30,7 @@ ...@@ -30,7 +30,7 @@
"02 03 2 5 7 5 4 2 4 2" "02 03 2 5 7 5 4 2 4 2"
static unsigned int reg11 = 0x6040; static unsigned int reg11 = 0x6040;
module_param(reg11, uint, 0); module_param(reg11, uint, 0000);
MODULE_PARM_DESC(reg11, "Register 11h value"); MODULE_PARM_DESC(reg11, "Register 11h value");
static int init_display(struct fbtft_par *par) static int init_display(struct fbtft_par *par)
......
...@@ -36,7 +36,7 @@ ...@@ -36,7 +36,7 @@
#define DEFAULT_GAMMA "40" #define DEFAULT_GAMMA "40"
static unsigned int bs = 4; 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)"); MODULE_PARM_DESC(bs, "BS[2:0] Bias voltage level: 0-7 (default: 4)");
static int init_display(struct fbtft_par *par) static int init_display(struct fbtft_par *par)
......
...@@ -42,30 +42,30 @@ ...@@ -42,30 +42,30 @@
/* BR -> actual ratio: 0-3 -> 5, 10, 11, 13 */ /* BR -> actual ratio: 0-3 -> 5, 10, 11, 13 */
static unsigned int ratio = 2; 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)"); MODULE_PARM_DESC(ratio, "BR[1:0] Bias voltage ratio: 0-3 (default: 2)");
static unsigned int gain = 3; 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)"); MODULE_PARM_DESC(gain, "GN[1:0] Bias voltage gain: 0-3 (default: 3)");
static unsigned int pot = 16; 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)"); 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 */ /* TC -> % compensation per deg C: 0-3 -> -.05, -.10, -.015, -.20 */
static unsigned int temp; 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)"); 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 */ /* PC[1:0] -> LCD capacitance: 0-3 -> <20nF, 20-28 nF, 29-40 nF, 40-56 nF */
static unsigned int load = 1; 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)"); 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 */ /* PC[3:2] -> V_LCD: 0, 1, 3 -> ext., int. with ratio = 5, int. standard */
static unsigned int pump = 3; 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)"); MODULE_PARM_DESC(pump, "PC[3:2] Pump control: 0,1,3 (default: 3)");
static int init_display(struct fbtft_par *par) static int init_display(struct fbtft_par *par)
......
...@@ -40,7 +40,7 @@ ...@@ -40,7 +40,7 @@
#define COLOR_RGB565 16 #define COLOR_RGB565 16
static short mode = 565; 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)"); MODULE_PARM_DESC(mode, "RGB color transfer mode: 332, 565 (default)");
static void write_reg8_bus8(struct fbtft_par *par, int len, ...) static void write_reg8_bus8(struct fbtft_par *par, int len, ...)
......
...@@ -40,7 +40,7 @@ ...@@ -40,7 +40,7 @@
#include "internal.h" #include "internal.h"
static unsigned long debug; static unsigned long debug;
module_param(debug, ulong, 0); module_param(debug, ulong, 0000);
MODULE_PARM_DESC(debug, "override device debug level"); MODULE_PARM_DESC(debug, "override device debug level");
void fbtft_dbg_hex(const struct device *dev, int groupsize, void fbtft_dbg_hex(const struct device *dev, int groupsize,
......
...@@ -29,85 +29,85 @@ static struct spi_device *spi_device; ...@@ -29,85 +29,85 @@ static struct spi_device *spi_device;
static struct platform_device *p_device; static struct platform_device *p_device;
static char *name; 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."); MODULE_PARM_DESC(name, "Devicename (required). name=list => list all supported devices.");
static unsigned int rotate; static unsigned int rotate;
module_param(rotate, uint, 0); module_param(rotate, uint, 0000);
MODULE_PARM_DESC(rotate, MODULE_PARM_DESC(rotate,
"Angle to rotate display counter clockwise: 0, 90, 180, 270"); "Angle to rotate display counter clockwise: 0, 90, 180, 270");
static unsigned int busnum; static unsigned int busnum;
module_param(busnum, uint, 0); module_param(busnum, uint, 0000);
MODULE_PARM_DESC(busnum, "SPI bus number (default=0)"); MODULE_PARM_DESC(busnum, "SPI bus number (default=0)");
static unsigned int cs; static unsigned int cs;
module_param(cs, uint, 0); module_param(cs, uint, 0000);
MODULE_PARM_DESC(cs, "SPI chip select (default=0)"); MODULE_PARM_DESC(cs, "SPI chip select (default=0)");
static unsigned int speed; static unsigned int speed;
module_param(speed, uint, 0); module_param(speed, uint, 0000);
MODULE_PARM_DESC(speed, "SPI speed (override device default)"); MODULE_PARM_DESC(speed, "SPI speed (override device default)");
static int mode = -1; static int mode = -1;
module_param(mode, int, 0); module_param(mode, int, 0000);
MODULE_PARM_DESC(mode, "SPI mode (override device default)"); MODULE_PARM_DESC(mode, "SPI mode (override device default)");
static char *gpios; static char *gpios;
module_param(gpios, charp, 0); module_param(gpios, charp, 0000);
MODULE_PARM_DESC(gpios, 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)"); "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; static unsigned int fps;
module_param(fps, uint, 0); module_param(fps, uint, 0000);
MODULE_PARM_DESC(fps, "Frames per second (override driver default)"); MODULE_PARM_DESC(fps, "Frames per second (override driver default)");
static char *gamma; static char *gamma;
module_param(gamma, charp, 0); module_param(gamma, charp, 0000);
MODULE_PARM_DESC(gamma, MODULE_PARM_DESC(gamma,
"String representation of Gamma Curve(s). Driver specific."); "String representation of Gamma Curve(s). Driver specific.");
static int txbuflen; static int txbuflen;
module_param(txbuflen, int, 0); module_param(txbuflen, int, 0000);
MODULE_PARM_DESC(txbuflen, "txbuflen (override driver default)"); MODULE_PARM_DESC(txbuflen, "txbuflen (override driver default)");
static int bgr = -1; static int bgr = -1;
module_param(bgr, int, 0); module_param(bgr, int, 0000);
MODULE_PARM_DESC(bgr, MODULE_PARM_DESC(bgr,
"BGR bit (supported by some drivers)."); "BGR bit (supported by some drivers).");
static unsigned int startbyte; 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."); MODULE_PARM_DESC(startbyte, "Sets the Start byte used by some SPI displays.");
static bool custom; 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"); 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; 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"); MODULE_PARM_DESC(width, "Display width, used with the custom argument");
static unsigned int height; 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"); MODULE_PARM_DESC(height, "Display height, used with the custom argument");
static unsigned int buswidth = 8; 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"); MODULE_PARM_DESC(buswidth, "Display bus width, used with the custom argument");
static s16 init[FBTFT_MAX_INIT_SEQUENCE]; static s16 init[FBTFT_MAX_INIT_SEQUENCE];
static int init_num; 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"); MODULE_PARM_DESC(init, "Init sequence, used with the custom argument");
static unsigned long debug; static unsigned long debug;
module_param(debug, ulong, 0); module_param(debug, ulong, 0000);
MODULE_PARM_DESC(debug, MODULE_PARM_DESC(debug,
"level: 0-7 (the remaining 29 bits is for advanced usage)"); "level: 0-7 (the remaining 29 bits is for advanced usage)");
static unsigned int verbose = 3; static unsigned int verbose = 3;
module_param(verbose, uint, 0); module_param(verbose, uint, 0000);
MODULE_PARM_DESC(verbose, MODULE_PARM_DESC(verbose,
"0 silent, >0 show gpios, >1 show devices, >2 show devices before (default=3)"); "0 silent, >0 show gpios, >1 show devices, >2 show devices before (default=3)");
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment