Commit 1014c2ce authored by Anish Bhatt's avatar Anish Bhatt Committed by Greg Kroah-Hartman
Browse files

staging/fbtft : Fix multiple/missing blank line issues



Remove or add blank lines as recommended by checkpatch.pl
Signed-off-by: default avatarAnish Bhatt <anish@chelsio.com>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent c3eeca50
......@@ -41,7 +41,6 @@
#define CS0 gpio.aux[0]
#define CS1 gpio.aux[1]
/* diffusing error (Floyd-Steinberg) */
#define DIFFUSING_MATRIX_WIDTH 2
#define DIFFUSING_MATRIX_HEIGHT 2
......@@ -416,7 +415,6 @@ static int write(struct fbtft_par *par, void *buf, size_t len)
gpio_set_value(par->RW, 0); /* set write mode */
while (len--) {
u8 i, data;
......@@ -452,6 +450,7 @@ static struct fbtft_display display = {
.write_vmem = write_vmem,
},
};
FBTFT_REGISTER_DRIVER(DRVNAME, "displaytronic,fb_agm1264k-fl", &display);
MODULE_ALIAS("platform:" DRVNAME);
......
......@@ -175,6 +175,7 @@ static struct fbtft_display display = {
.set_var = set_var,
},
};
FBTFT_REGISTER_DRIVER(DRVNAME, "hitachi,bd663474", &display);
MODULE_ALIAS("spi:" DRVNAME);
......
......@@ -35,12 +35,10 @@
#define DEFAULT_GAMMA "1 3 0E 5 0 2 09 0 6 1 7 1 0 2 2\n" \
"3 3 17 8 4 7 05 7 6 0 3 1 6 0 0 "
static bool emulate;
module_param(emulate, bool, 0);
MODULE_PARM_DESC(emulate, "Force emulation in 9-bit mode");
static int init_display(struct fbtft_par *par)
{
par->fbtftops.reset(par);
......@@ -188,7 +186,6 @@ static int set_gamma(struct fbtft_par *par, unsigned long *curves)
}
#undef CURVE
static struct fbtft_display display = {
.regwidth = 8,
.width = WIDTH,
......@@ -204,6 +201,7 @@ static struct fbtft_display display = {
.set_gamma = set_gamma,
},
};
FBTFT_REGISTER_DRIVER(DRVNAME, "himax,hx8340bn", &display);
MODULE_ALIAS("spi:" DRVNAME);
......
......@@ -29,7 +29,6 @@
#define DEFAULT_GAMMA "0 0 0 0 0 0 0 0 0 0 0 0 0 0\n" \
"0 0 0 0 0 0 0 0 0 0 0 0 0 0"
static int init_display(struct fbtft_par *par)
{
fbtft_par_dbg(DEBUG_INIT_DISPLAY, par, "%s()\n", __func__);
......@@ -147,7 +146,6 @@ static int set_gamma(struct fbtft_par *par, unsigned long *curves)
}
#undef CURVE
static struct fbtft_display display = {
.regwidth = 8,
.width = WIDTH,
......@@ -161,6 +159,7 @@ static struct fbtft_display display = {
.set_gamma = set_gamma,
},
};
FBTFT_REGISTER_DRIVER(DRVNAME, "himax,hx8347d", &display);
MODULE_ALIAS("spi:" DRVNAME);
......
......@@ -132,7 +132,6 @@ static int set_gamma(struct fbtft_par *par, unsigned long *curves)
return 0;
}
static struct fbtft_display display = {
.regwidth = 8,
.width = 128,
......@@ -147,6 +146,7 @@ static struct fbtft_display display = {
.set_gamma = set_gamma,
},
};
FBTFT_REGISTER_DRIVER(DRVNAME, "himax,hx8353d", &display);
MODULE_ALIAS("spi:" DRVNAME);
......
......@@ -30,7 +30,6 @@
#define WIDTH 320
#define HEIGHT 480
static int init_display(struct fbtft_par *par)
{
fbtft_par_dbg(DEBUG_INIT_DISPLAY, par, "%s()\n", __func__);
......@@ -204,6 +203,7 @@ static struct fbtft_display display = {
.set_var = set_var,
},
};
FBTFT_REGISTER_DRIVER(DRVNAME, "himax,hx8357d", &display);
MODULE_ALIAS("spi:" DRVNAME);
......
......@@ -29,7 +29,6 @@
#define DEFAULT_GAMMA "07 07 6 0 0 0 5 5 4 0\n" \
"07 08 4 7 5 1 2 0 7 7"
static unsigned read_devicecode(struct fbtft_par *par)
{
int ret;
......@@ -92,7 +91,6 @@ static int init_display(struct fbtft_par *par)
/* RGB interface polarity */
write_reg(par, 0x000F, 0x0000);
/* ***********Power On sequence *************** */
/* SAP, BT[3:0], AP, DSTB, SLP, STB */
write_reg(par, 0x0010, 0x0000);
......@@ -258,7 +256,6 @@ static int set_gamma(struct fbtft_par *par, unsigned long *curves)
}
#undef CURVE
static struct fbtft_display display = {
.regwidth = 16,
.width = WIDTH,
......@@ -273,6 +270,7 @@ static struct fbtft_display display = {
.set_gamma = set_gamma,
},
};
FBTFT_REGISTER_DRIVER(DRVNAME, "ilitek,ili9320", &display);
MODULE_ALIAS("spi:" DRVNAME);
......
......@@ -32,7 +32,6 @@
#define DEFAULT_GAMMA "0F 00 7 2 0 0 6 5 4 1\n" \
"04 16 2 7 6 3 2 1 7 7"
static unsigned bt = 6; /* VGL=Vci*4 , VGH=Vci*4 */
module_param(bt, uint, 0);
MODULE_PARM_DESC(bt, "Sets the factor used in the step-up circuits");
......@@ -56,7 +55,6 @@ static unsigned vcm = 0x0a; /* VCOMH=VREG1OUT*0.735 */
module_param(vcm, uint, 0);
MODULE_PARM_DESC(vcm, "Set the internal VcomH voltage");
/*
Verify that this configuration is within the Voltage limits
......@@ -255,7 +253,6 @@ static int set_gamma(struct fbtft_par *par, unsigned long *curves)
}
#undef CURVE
static struct fbtft_display display = {
.regwidth = 16,
.width = WIDTH,
......@@ -272,6 +269,7 @@ static struct fbtft_display display = {
.set_gamma = set_gamma,
},
};
FBTFT_REGISTER_DRIVER(DRVNAME, "ilitek,ili9325", &display);
MODULE_ALIAS("spi:" DRVNAME);
......
......@@ -26,7 +26,6 @@
#define WIDTH 240
#define HEIGHT 320
/* Init sequence taken from: Arduino Library for the Adafruit 2.2" display */
static int init_display(struct fbtft_par *par)
{
......@@ -133,7 +132,6 @@ static int set_var(struct fbtft_par *par)
return 0;
}
static struct fbtft_display display = {
.regwidth = 8,
.width = WIDTH,
......@@ -144,6 +142,7 @@ static struct fbtft_display display = {
.set_var = set_var,
},
};
FBTFT_REGISTER_DRIVER(DRVNAME, "ilitek,ili9340", &display);
MODULE_ALIAS("spi:" DRVNAME);
......
......@@ -34,7 +34,6 @@
#define DEFAULT_GAMMA "1F 1A 18 0A 0F 06 45 87 32 0A 07 02 07 05 00\n" \
"00 25 27 05 10 09 3A 78 4D 05 18 0D 38 3A 1F"
static int init_display(struct fbtft_par *par)
{
fbtft_par_dbg(DEBUG_INIT_DISPLAY, par, "%s()\n", __func__);
......@@ -144,7 +143,6 @@ static int set_gamma(struct fbtft_par *par, unsigned long *curves)
}
#undef CURVE
static struct fbtft_display display = {
.regwidth = 8,
.width = WIDTH,
......@@ -160,6 +158,7 @@ static struct fbtft_display display = {
.set_gamma = set_gamma,
},
};
FBTFT_REGISTER_DRIVER(DRVNAME, "ilitek,ili9341", &display);
MODULE_ALIAS("spi:" DRVNAME);
......
......@@ -98,6 +98,7 @@ static struct fbtft_display display = {
.set_var = set_var,
},
};
FBTFT_REGISTER_DRIVER(DRVNAME, "ilitek,ili9481", &display);
MODULE_ALIAS("spi:" DRVNAME);
......
......@@ -24,7 +24,6 @@
#define WIDTH 320
#define HEIGHT 480
/* this init sequence matches PiScreen */
static int default_init_sequence[] = {
/* Interface Mode Control */
......@@ -91,7 +90,6 @@ static int set_var(struct fbtft_par *par)
return 0;
}
static struct fbtft_display display = {
.regwidth = 8,
.width = WIDTH,
......@@ -102,6 +100,7 @@ static struct fbtft_display display = {
.set_var = set_var,
},
};
FBTFT_REGISTER_DRIVER(DRVNAME, "ilitek,ili9486", &display);
MODULE_ALIAS("spi:" DRVNAME);
......
......@@ -40,7 +40,6 @@ static unsigned bs = 4;
module_param(bs, uint, 0);
MODULE_PARM_DESC(bs, "BS[2:0] Bias voltage level: 0-7 (default: 4)");
static int init_display(struct fbtft_par *par)
{
fbtft_par_dbg(DEBUG_INIT_DISPLAY, par, "%s()\n", __func__);
......@@ -155,7 +154,6 @@ static int set_gamma(struct fbtft_par *par, unsigned long *curves)
return 0;
}
static struct fbtft_display display = {
.regwidth = 8,
.width = WIDTH,
......@@ -172,6 +170,7 @@ static struct fbtft_display display = {
},
.backlight = 1,
};
FBTFT_REGISTER_DRIVER(DRVNAME, "philips,pdc8544", &display);
MODULE_ALIAS("spi:" DRVNAME);
......
......@@ -305,6 +305,7 @@ static struct fbtft_display display = {
.write = write_spi,
},
};
FBTFT_REGISTER_DRIVER(DRVNAME, "raio,ra8875", &display);
MODULE_ALIAS("spi:" DRVNAME);
......
......@@ -149,6 +149,7 @@ static struct fbtft_display display = {
.set_var = set_var,
},
};
FBTFT_REGISTER_DRIVER(DRVNAME, "samsung,s6d02a1", &display);
MODULE_ALIAS("spi:" DRVNAME);
......
......@@ -171,7 +171,6 @@ static int set_gamma(struct fbtft_par *par, unsigned long *curves)
}
#undef CURVE
static struct fbtft_display display = {
.regwidth = 16,
.width = WIDTH,
......@@ -188,6 +187,7 @@ static struct fbtft_display display = {
.set_gamma = set_gamma,
},
};
FBTFT_REGISTER_DRIVER(DRVNAME, "samsung,s6d1121", &display);
MODULE_ALIAS("spi:" DRVNAME);
......
......@@ -33,7 +33,6 @@ static unsigned reg11 = 0x6040;
module_param(reg11, uint, 0);
MODULE_PARM_DESC(reg11, "Register 11h value");
static int init_display(struct fbtft_par *par)
{
fbtft_par_dbg(DEBUG_INIT_DISPLAY, par, "%s()\n", __func__);
......@@ -171,7 +170,6 @@ static int set_gamma(struct fbtft_par *par, unsigned long *curves)
}
#undef CURVE
static struct fbtft_display display = {
.regwidth = 16,
.width = WIDTH,
......@@ -186,6 +184,7 @@ static struct fbtft_display display = {
.set_gamma = set_gamma,
},
};
FBTFT_REGISTER_DRIVER(DRVNAME, "solomon,ssd1289", &display);
MODULE_ALIAS("spi:" DRVNAME);
......
......@@ -26,7 +26,6 @@
#define WIDTH 128
#define HEIGHT 64
/*
write_reg() caveat:
......@@ -192,7 +191,6 @@ static int write_vmem(struct fbtft_par *par, size_t offset, size_t len)
return ret;
}
static struct fbtft_display display = {
.regwidth = 8,
.width = WIDTH,
......@@ -209,7 +207,6 @@ static struct fbtft_display display = {
},
};
FBTFT_REGISTER_DRIVER(DRVNAME, "solomon,ssd1306", &display);
MODULE_ALIAS("spi:" DRVNAME);
......
......@@ -123,7 +123,6 @@ static void write_reg8_bus8(struct fbtft_par *par, int len, ...)
:
Setting of GS63 has to be > Setting of GS62 +1
*/
static int set_gamma(struct fbtft_par *par, unsigned long *curves)
{
......@@ -173,7 +172,6 @@ static int blank(struct fbtft_par *par, bool on)
return 0;
}
static struct fbtft_display display = {
.regwidth = 8,
.width = WIDTH,
......
......@@ -120,7 +120,6 @@ static int set_var(struct fbtft_par *par)
:
Setting of GS63 has to be > Setting of GS62 +1
*/
static int set_gamma(struct fbtft_par *par, unsigned long *curves)
{
......@@ -170,7 +169,6 @@ static int blank(struct fbtft_par *par, bool on)
return 0;
}
static struct fbtft_display display = {
.regwidth = 8,
.width = WIDTH,
......@@ -236,7 +234,6 @@ static void register_onboard_backlight(struct fbtft_par *par)
static void register_onboard_backlight(struct fbtft_par *par) { };
#endif
FBTFT_REGISTER_DRIVER(DRVNAME, "solomon,ssd1351", &display);
MODULE_ALIAS("spi:" DRVNAME);
......
Supports Markdown
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