forked from Minki/linux
Staging: fbtft: Remove debug messages
Remove debug messages related to fbtft_par_dbg(DEBUG_INIT_DISPLAY.. ) as this info can be obtained using kernel function tracer Signed-off-by: Shraddha Barke <shraddha.6596@gmail.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
parent
40220d8062
commit
64ffdc383b
@ -74,8 +74,6 @@ static int init_display(struct fbtft_par *par)
|
||||
{
|
||||
u8 i;
|
||||
|
||||
fbtft_par_dbg(DEBUG_INIT_DISPLAY, par, "%s()\n", __func__);
|
||||
|
||||
par->fbtftops.reset(par);
|
||||
|
||||
for (i = 0; i < 2; ++i) {
|
||||
|
@ -33,8 +33,6 @@
|
||||
|
||||
static int init_display(struct fbtft_par *par)
|
||||
{
|
||||
fbtft_par_dbg(DEBUG_INIT_DISPLAY, par, "%s()\n", __func__);
|
||||
|
||||
if (par->gpio.cs != -1)
|
||||
gpio_set_value(par->gpio.cs, 0); /* Activate chip */
|
||||
|
||||
@ -143,8 +141,6 @@ static void set_addr_win(struct fbtft_par *par, int xs, int ys, int xe, int ye)
|
||||
|
||||
static int set_var(struct fbtft_par *par)
|
||||
{
|
||||
fbtft_par_dbg(DEBUG_INIT_DISPLAY, par, "%s()\n", __func__);
|
||||
|
||||
switch (par->info->var.rotate) {
|
||||
/* AM: GRAM update direction */
|
||||
case 0:
|
||||
|
@ -31,8 +31,6 @@
|
||||
|
||||
static int init_display(struct fbtft_par *par)
|
||||
{
|
||||
fbtft_par_dbg(DEBUG_INIT_DISPLAY, par, "%s()\n", __func__);
|
||||
|
||||
par->fbtftops.reset(par);
|
||||
|
||||
/* driving ability */
|
||||
@ -113,8 +111,6 @@ static int set_gamma(struct fbtft_par *par, unsigned long *curves)
|
||||
int i, j;
|
||||
int acc = 0;
|
||||
|
||||
fbtft_par_dbg(DEBUG_INIT_DISPLAY, par, "%s()\n", __func__);
|
||||
|
||||
/* apply mask */
|
||||
for (i = 0; i < par->gamma.num_curves; i++)
|
||||
for (j = 0; j < par->gamma.num_values; j++) {
|
||||
|
@ -28,8 +28,6 @@
|
||||
static int init_display(struct fbtft_par *par)
|
||||
{
|
||||
|
||||
fbtft_par_dbg(DEBUG_INIT_DISPLAY, par, "%s()\n", __func__);
|
||||
|
||||
par->fbtftops.reset(par);
|
||||
mdelay(150);
|
||||
|
||||
@ -89,8 +87,6 @@ static void set_addr_win(struct fbtft_par *par, int xs, int ys, int xe, int ye)
|
||||
#define mv BIT(5)
|
||||
static int set_var(struct fbtft_par *par)
|
||||
{
|
||||
fbtft_par_dbg(DEBUG_INIT_DISPLAY, par, "%s()\n", __func__);
|
||||
|
||||
/* madctl - memory data access control
|
||||
rgb/bgr:
|
||||
1. mode selection pin srgb
|
||||
@ -120,8 +116,6 @@ static int set_var(struct fbtft_par *par)
|
||||
*/
|
||||
static int set_gamma(struct fbtft_par *par, unsigned long *curves)
|
||||
{
|
||||
fbtft_par_dbg(DEBUG_INIT_DISPLAY, par, "%s()\n", __func__);
|
||||
|
||||
write_reg(par, 0xE0,
|
||||
curves[0], curves[1], curves[2], curves[3],
|
||||
curves[4], curves[5], curves[6], curves[7],
|
||||
|
@ -32,8 +32,6 @@
|
||||
|
||||
static int init_display(struct fbtft_par *par)
|
||||
{
|
||||
fbtft_par_dbg(DEBUG_INIT_DISPLAY, par, "%s()\n", __func__);
|
||||
|
||||
par->fbtftops.reset(par);
|
||||
|
||||
/* Reset things like Gamma */
|
||||
@ -166,8 +164,6 @@ static int set_var(struct fbtft_par *par)
|
||||
{
|
||||
u8 val;
|
||||
|
||||
fbtft_par_dbg(DEBUG_INIT_DISPLAY, par, "%s()\n", __func__);
|
||||
|
||||
switch (par->info->var.rotate) {
|
||||
case 270:
|
||||
val = HX8357D_MADCTL_MV | HX8357D_MADCTL_MX;
|
||||
|
@ -108,8 +108,6 @@ create setup for different displays.
|
||||
|
||||
static int init_display(struct fbtft_par *par)
|
||||
{
|
||||
fbtft_par_dbg(DEBUG_INIT_DISPLAY, par, "%s()\n", __func__);
|
||||
|
||||
par->fbtftops.reset(par);
|
||||
|
||||
if (par->gpio.cs != -1)
|
||||
@ -201,8 +199,6 @@ static int set_var(struct fbtft_par *par)
|
||||
{
|
||||
u8 mactrl_data = 0; /* Avoid compiler warning */
|
||||
|
||||
fbtft_par_dbg(DEBUG_INIT_DISPLAY, par, "%s()\n", __func__);
|
||||
|
||||
switch (par->info->var.rotate) {
|
||||
case 0:
|
||||
mactrl_data = 0x08;
|
||||
@ -236,8 +232,6 @@ static int gamma_adj(struct fbtft_par *par, unsigned long *curves)
|
||||
0x3F, 0x3F, 0x3F, 0x3F, 0x3F};
|
||||
int i, j;
|
||||
|
||||
fbtft_par_dbg(DEBUG_INIT_DISPLAY, par, "%s()\n", __func__);
|
||||
|
||||
for (i = 0; i < GAMMA_NUM; i++)
|
||||
for (j = 0; j < GAMMA_LEN; j++)
|
||||
CURVE(i, j) &= mask[i * par->gamma.num_values + j];
|
||||
|
@ -43,8 +43,6 @@ static int init_display(struct fbtft_par *par)
|
||||
{
|
||||
unsigned devcode;
|
||||
|
||||
fbtft_par_dbg(DEBUG_INIT_DISPLAY, par, "%s()\n", __func__);
|
||||
|
||||
par->fbtftops.reset(par);
|
||||
|
||||
devcode = read_devicecode(par);
|
||||
@ -200,8 +198,6 @@ static void set_addr_win(struct fbtft_par *par, int xs, int ys, int xe, int ye)
|
||||
|
||||
static int set_var(struct fbtft_par *par)
|
||||
{
|
||||
fbtft_par_dbg(DEBUG_INIT_DISPLAY, par, "%s()\n", __func__);
|
||||
|
||||
switch (par->info->var.rotate) {
|
||||
case 0:
|
||||
write_reg(par, 0x3, (par->bgr << 12) | 0x30);
|
||||
@ -233,8 +229,6 @@ static int set_gamma(struct fbtft_par *par, unsigned long *curves)
|
||||
};
|
||||
int i, j;
|
||||
|
||||
fbtft_par_dbg(DEBUG_INIT_DISPLAY, par, "%s()\n", __func__);
|
||||
|
||||
/* apply mask */
|
||||
for (i = 0; i < 2; i++)
|
||||
for (j = 0; j < 10; j++)
|
||||
|
@ -95,8 +95,6 @@ VCOMH - VCOML < 6.0 => 4.79 < 6.0
|
||||
|
||||
static int init_display(struct fbtft_par *par)
|
||||
{
|
||||
fbtft_par_dbg(DEBUG_INIT_DISPLAY, par, "%s()\n", __func__);
|
||||
|
||||
par->fbtftops.reset(par);
|
||||
|
||||
if (par->gpio.cs != -1)
|
||||
@ -195,8 +193,6 @@ static void set_addr_win(struct fbtft_par *par, int xs, int ys, int xe, int ye)
|
||||
|
||||
static int set_var(struct fbtft_par *par)
|
||||
{
|
||||
fbtft_par_dbg(DEBUG_INIT_DISPLAY, par, "%s()\n", __func__);
|
||||
|
||||
switch (par->info->var.rotate) {
|
||||
/* AM: GRAM update direction */
|
||||
case 0:
|
||||
@ -230,8 +226,6 @@ static int set_gamma(struct fbtft_par *par, unsigned long *curves)
|
||||
};
|
||||
int i, j;
|
||||
|
||||
fbtft_par_dbg(DEBUG_INIT_DISPLAY, par, "%s()\n", __func__);
|
||||
|
||||
/* apply mask */
|
||||
for (i = 0; i < 2; i++)
|
||||
for (j = 0; j < 10; j++)
|
||||
|
@ -29,8 +29,6 @@
|
||||
/* Init sequence taken from: Arduino Library for the Adafruit 2.2" display */
|
||||
static int init_display(struct fbtft_par *par)
|
||||
{
|
||||
fbtft_par_dbg(DEBUG_INIT_DISPLAY, par, "%s()\n", __func__);
|
||||
|
||||
par->fbtftops.reset(par);
|
||||
|
||||
write_reg(par, 0xEF, 0x03, 0x80, 0x02);
|
||||
@ -110,8 +108,6 @@ static int set_var(struct fbtft_par *par)
|
||||
{
|
||||
u8 val;
|
||||
|
||||
fbtft_par_dbg(DEBUG_INIT_DISPLAY, par, "%s()\n", __func__);
|
||||
|
||||
switch (par->info->var.rotate) {
|
||||
case 270:
|
||||
val = ILI9340_MADCTL_MV;
|
||||
|
@ -36,8 +36,6 @@
|
||||
|
||||
static int init_display(struct fbtft_par *par)
|
||||
{
|
||||
fbtft_par_dbg(DEBUG_INIT_DISPLAY, par, "%s()\n", __func__);
|
||||
|
||||
par->fbtftops.reset(par);
|
||||
|
||||
/* startup sequence for MI0283QT-9A */
|
||||
@ -97,8 +95,6 @@ static void set_addr_win(struct fbtft_par *par, int xs, int ys, int xe, int ye)
|
||||
#define MEM_BGR (3) /* RGB-BGR Order */
|
||||
static int set_var(struct fbtft_par *par)
|
||||
{
|
||||
fbtft_par_dbg(DEBUG_INIT_DISPLAY, par, "%s()\n", __func__);
|
||||
|
||||
switch (par->info->var.rotate) {
|
||||
case 0:
|
||||
write_reg(par, 0x36, (1 << MEM_X) | (par->bgr << MEM_BGR));
|
||||
@ -129,8 +125,6 @@ static int set_gamma(struct fbtft_par *par, unsigned long *curves)
|
||||
{
|
||||
int i;
|
||||
|
||||
fbtft_par_dbg(DEBUG_INIT_DISPLAY, par, "%s()\n", __func__);
|
||||
|
||||
for (i = 0; i < par->gamma.num_curves; i++)
|
||||
write_reg(par, 0xE0 + i,
|
||||
CURVE(i, 0), CURVE(i, 1), CURVE(i, 2),
|
||||
|
@ -68,8 +68,6 @@ static void set_addr_win(struct fbtft_par *par, int xs, int ys, int xe, int ye)
|
||||
#define ROWxCOL 0x20
|
||||
static int set_var(struct fbtft_par *par)
|
||||
{
|
||||
fbtft_par_dbg(DEBUG_INIT_DISPLAY, par, "%s()\n", __func__);
|
||||
|
||||
switch (par->info->var.rotate) {
|
||||
case 270:
|
||||
write_reg(par, 0x36, ROWxCOL | HFLIP | VFLIP | (par->bgr << 3));
|
||||
|
@ -68,8 +68,6 @@ static void set_addr_win(struct fbtft_par *par, int xs, int ys, int xe, int ye)
|
||||
|
||||
static int set_var(struct fbtft_par *par)
|
||||
{
|
||||
fbtft_par_dbg(DEBUG_INIT_DISPLAY, par, "%s()\n", __func__);
|
||||
|
||||
switch (par->info->var.rotate) {
|
||||
case 0:
|
||||
write_reg(par, 0x36, 0x80 | (par->bgr << 3));
|
||||
|
@ -42,8 +42,6 @@ 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__);
|
||||
|
||||
par->fbtftops.reset(par);
|
||||
|
||||
/* Function set
|
||||
@ -143,8 +141,6 @@ static int write_vmem(struct fbtft_par *par, size_t offset, size_t len)
|
||||
|
||||
static int set_gamma(struct fbtft_par *par, unsigned long *curves)
|
||||
{
|
||||
fbtft_par_dbg(DEBUG_INIT_DISPLAY, par, "%s()\n", __func__);
|
||||
|
||||
/* apply mask */
|
||||
curves[0] &= 0x7F;
|
||||
|
||||
|
@ -113,8 +113,6 @@ static void set_addr_win(struct fbtft_par *par, int xs, int ys, int xe, int ye)
|
||||
#define MV BIT(5)
|
||||
static int set_var(struct fbtft_par *par)
|
||||
{
|
||||
fbtft_par_dbg(DEBUG_INIT_DISPLAY, par, "%s()\n", __func__);
|
||||
|
||||
/* MADCTL - Memory data access control
|
||||
RGB/BGR:
|
||||
1. Mode selection pin SRGB
|
||||
|
@ -36,8 +36,6 @@
|
||||
|
||||
static int init_display(struct fbtft_par *par)
|
||||
{
|
||||
fbtft_par_dbg(DEBUG_INIT_DISPLAY, par, "%s()\n", __func__);
|
||||
|
||||
par->fbtftops.reset(par);
|
||||
|
||||
if (par->gpio.cs != -1)
|
||||
@ -107,8 +105,6 @@ static void set_addr_win(struct fbtft_par *par, int xs, int ys, int xe, int ye)
|
||||
|
||||
static int set_var(struct fbtft_par *par)
|
||||
{
|
||||
fbtft_par_dbg(DEBUG_INIT_DISPLAY, par, "%s()\n", __func__);
|
||||
|
||||
switch (par->info->var.rotate) {
|
||||
/* AM: GRAM update direction */
|
||||
case 0:
|
||||
@ -143,8 +139,6 @@ static int set_gamma(struct fbtft_par *par, unsigned long *curves)
|
||||
};
|
||||
int i, j;
|
||||
|
||||
fbtft_par_dbg(DEBUG_INIT_DISPLAY, par, "%s()\n", __func__);
|
||||
|
||||
/* apply mask */
|
||||
for (i = 0; i < 2; i++)
|
||||
for (j = 0; j < 14; j++)
|
||||
|
@ -35,8 +35,6 @@ 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__);
|
||||
|
||||
par->fbtftops.reset(par);
|
||||
|
||||
if (par->gpio.cs != -1)
|
||||
@ -106,8 +104,6 @@ static void set_addr_win(struct fbtft_par *par, int xs, int ys, int xe, int ye)
|
||||
|
||||
static int set_var(struct fbtft_par *par)
|
||||
{
|
||||
fbtft_par_dbg(DEBUG_INIT_DISPLAY, par, "%s()\n", __func__);
|
||||
|
||||
if (par->fbtftops.init_display != init_display) {
|
||||
/* don't risk messing up register 11h */
|
||||
fbtft_par_dbg(DEBUG_INIT_DISPLAY, par,
|
||||
@ -148,8 +144,6 @@ static int set_gamma(struct fbtft_par *par, unsigned long *curves)
|
||||
};
|
||||
int i, j;
|
||||
|
||||
fbtft_par_dbg(DEBUG_INIT_DISPLAY, par, "%s()\n", __func__);
|
||||
|
||||
/* apply mask */
|
||||
for (i = 0; i < 2; i++)
|
||||
for (j = 0; j < 10; j++)
|
||||
|
@ -40,8 +40,6 @@
|
||||
/* Init sequence taken from the Adafruit SSD1306 Arduino library */
|
||||
static int init_display(struct fbtft_par *par)
|
||||
{
|
||||
fbtft_par_dbg(DEBUG_INIT_DISPLAY, par, "%s()\n", __func__);
|
||||
|
||||
par->fbtftops.reset(par);
|
||||
|
||||
if (par->gamma.curves[0] == 0) {
|
||||
@ -150,8 +148,6 @@ static int blank(struct fbtft_par *par, bool on)
|
||||
/* Gamma is used to control Contrast */
|
||||
static int set_gamma(struct fbtft_par *par, unsigned long *curves)
|
||||
{
|
||||
fbtft_par_dbg(DEBUG_INIT_DISPLAY, par, "%s()\n", __func__);
|
||||
|
||||
/* apply mask */
|
||||
curves[0] &= 0xFF;
|
||||
|
||||
|
@ -23,8 +23,6 @@
|
||||
|
||||
static int init_display(struct fbtft_par *par)
|
||||
{
|
||||
fbtft_par_dbg(DEBUG_INIT_DISPLAY, par, "%s()\n", __func__);
|
||||
|
||||
par->fbtftops.reset(par);
|
||||
|
||||
write_reg(par, 0xae); /* Display Off */
|
||||
@ -129,8 +127,6 @@ static int set_gamma(struct fbtft_par *par, unsigned long *curves)
|
||||
unsigned long tmp[GAMMA_NUM * GAMMA_LEN];
|
||||
int i, acc = 0;
|
||||
|
||||
fbtft_par_dbg(DEBUG_INIT_DISPLAY, par, "%s()\n", __func__);
|
||||
|
||||
for (i = 0; i < 63; i++) {
|
||||
if (i > 0 && curves[i] < 2) {
|
||||
dev_err(par->info->device,
|
||||
|
@ -25,8 +25,6 @@ static void register_onboard_backlight(struct fbtft_par *par);
|
||||
|
||||
static int init_display(struct fbtft_par *par)
|
||||
{
|
||||
fbtft_par_dbg(DEBUG_INIT_DISPLAY, par, "%s()\n", __func__);
|
||||
|
||||
if (par->pdata
|
||||
&& par->pdata->display.backlight == FBTFT_ONBOARD_BACKLIGHT) {
|
||||
/* module uses onboard GPIO for panel power */
|
||||
@ -70,8 +68,6 @@ static int set_var(struct fbtft_par *par)
|
||||
{
|
||||
unsigned remap;
|
||||
|
||||
fbtft_par_dbg(DEBUG_INIT_DISPLAY, par, "%s()\n", __func__);
|
||||
|
||||
if (par->fbtftops.init_display != init_display) {
|
||||
/* don't risk messing up register A0h */
|
||||
fbtft_par_dbg(DEBUG_INIT_DISPLAY, par,
|
||||
@ -126,8 +122,6 @@ static int set_gamma(struct fbtft_par *par, unsigned long *curves)
|
||||
unsigned long tmp[GAMMA_NUM * GAMMA_LEN];
|
||||
int i, acc = 0;
|
||||
|
||||
fbtft_par_dbg(DEBUG_INIT_DISPLAY, par, "%s()\n", __func__);
|
||||
|
||||
for (i = 0; i < 63; i++) {
|
||||
if (i > 0 && curves[i] < 2) {
|
||||
dev_err(par->info->device,
|
||||
|
@ -106,8 +106,6 @@ static void set_addr_win(struct fbtft_par *par, int xs, int ys, int xe, int ye)
|
||||
#define MV BIT(5)
|
||||
static int set_var(struct fbtft_par *par)
|
||||
{
|
||||
fbtft_par_dbg(DEBUG_INIT_DISPLAY, par, "%s()\n", __func__);
|
||||
|
||||
/* MADCTL - Memory data access control
|
||||
RGB/BGR:
|
||||
1. Mode selection pin SRGB
|
||||
@ -142,8 +140,6 @@ static int set_gamma(struct fbtft_par *par, unsigned long *curves)
|
||||
{
|
||||
int i, j;
|
||||
|
||||
fbtft_par_dbg(DEBUG_INIT_DISPLAY, par, "%s()\n", __func__);
|
||||
|
||||
/* apply mask */
|
||||
for (i = 0; i < par->gamma.num_curves; i++)
|
||||
for (j = 0; j < par->gamma.num_values; j++)
|
||||
|
@ -27,8 +27,6 @@
|
||||
|
||||
static int init_display(struct fbtft_par *par)
|
||||
{
|
||||
fbtft_par_dbg(DEBUG_INIT_DISPLAY, par, "%s()\n", __func__);
|
||||
|
||||
par->fbtftops.reset(par);
|
||||
|
||||
write_reg(par, 0xB0, 0x80);
|
||||
@ -71,8 +69,6 @@ static void set_addr_win(struct fbtft_par *par, int xs, int ys, int xe, int ye)
|
||||
|
||||
static int set_var(struct fbtft_par *par)
|
||||
{
|
||||
fbtft_par_dbg(DEBUG_INIT_DISPLAY, par, "%s()\n", __func__);
|
||||
|
||||
switch (par->info->var.rotate) {
|
||||
case 270:
|
||||
write_reg(par, 0xB6, 0x00, 0x02, 0x3B);
|
||||
|
@ -41,8 +41,6 @@ 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__);
|
||||
|
||||
par->fbtftops.reset(par);
|
||||
|
||||
/* Enter extended command mode */
|
||||
@ -135,8 +133,6 @@ static int write_vmem(struct fbtft_par *par, size_t offset, size_t len)
|
||||
|
||||
static int set_gamma(struct fbtft_par *par, unsigned long *curves)
|
||||
{
|
||||
fbtft_par_dbg(DEBUG_INIT_DISPLAY, par, "%s()\n", __func__);
|
||||
|
||||
/* apply mask */
|
||||
curves[0] &= 0x7F;
|
||||
|
||||
|
@ -72,8 +72,6 @@ static int init_display(struct fbtft_par *par)
|
||||
{
|
||||
int ret;
|
||||
|
||||
fbtft_par_dbg(DEBUG_INIT_DISPLAY, par, "%s()\n", __func__);
|
||||
|
||||
/* Set CS active high */
|
||||
par->spi->mode |= SPI_CS_HIGH;
|
||||
ret = par->spi->master->setup(par->spi);
|
||||
@ -152,8 +150,6 @@ static int blank(struct fbtft_par *par, bool on)
|
||||
|
||||
static int set_var(struct fbtft_par *par)
|
||||
{
|
||||
fbtft_par_dbg(DEBUG_INIT_DISPLAY, par, "%s()\n", __func__);
|
||||
|
||||
/* par->info->fix.visual = FB_VISUAL_PSEUDOCOLOR; */
|
||||
par->info->var.grayscale = 1;
|
||||
par->info->var.red.offset = 0;
|
||||
|
@ -71,8 +71,6 @@
|
||||
|
||||
static int init_display(struct fbtft_par *par)
|
||||
{
|
||||
fbtft_par_dbg(DEBUG_INIT_DISPLAY, par, "%s()\n", __func__);
|
||||
|
||||
par->fbtftops.reset(par);
|
||||
|
||||
/* softreset of LCD */
|
||||
|
@ -33,8 +33,6 @@
|
||||
|
||||
static int init_display(struct fbtft_par *par)
|
||||
{
|
||||
fbtft_par_dbg(DEBUG_INIT_DISPLAY, par, "%s()\n", __func__);
|
||||
|
||||
par->fbtftops.reset(par);
|
||||
|
||||
if (par->gpio.cs != -1)
|
||||
@ -153,8 +151,6 @@ static void set_addr_win(struct fbtft_par *par, int xs, int ys, int xe, int ye)
|
||||
|
||||
static int set_var(struct fbtft_par *par)
|
||||
{
|
||||
fbtft_par_dbg(DEBUG_INIT_DISPLAY, par, "%s()\n", __func__);
|
||||
|
||||
switch (par->info->var.rotate) {
|
||||
/* AM: GRAM update direction */
|
||||
case 0:
|
||||
|
@ -159,8 +159,6 @@ static int init_display(struct fbtft_par *par)
|
||||
unsigned version;
|
||||
u8 save_mode;
|
||||
|
||||
fbtft_par_dbg(DEBUG_INIT_DISPLAY, par, "%s()\n", __func__);
|
||||
|
||||
/* enable SPI interface by having CS and MOSI low during reset */
|
||||
save_mode = par->spi->mode;
|
||||
par->spi->mode |= SPI_CS_HIGH;
|
||||
@ -200,8 +198,6 @@ static int set_var(struct fbtft_par *par)
|
||||
{
|
||||
u8 rotate;
|
||||
|
||||
fbtft_par_dbg(DEBUG_INIT_DISPLAY, par, "%s()\n", __func__);
|
||||
|
||||
/* this controller rotates clock wise */
|
||||
switch (par->info->var.rotate) {
|
||||
case 90:
|
||||
|
@ -1050,8 +1050,6 @@ static int fbtft_init_display_dt(struct fbtft_par *par)
|
||||
u32 val;
|
||||
int buf[64], i, j;
|
||||
|
||||
fbtft_par_dbg(DEBUG_INIT_DISPLAY, par, "%s()\n", __func__);
|
||||
|
||||
if (!node)
|
||||
return -EINVAL;
|
||||
|
||||
@ -1134,8 +1132,6 @@ int fbtft_init_display(struct fbtft_par *par)
|
||||
int i = 0;
|
||||
int j;
|
||||
|
||||
fbtft_par_dbg(DEBUG_INIT_DISPLAY, par, "%s()\n", __func__);
|
||||
|
||||
/* sanity check */
|
||||
if (!par->init_sequence) {
|
||||
dev_err(par->info->device,
|
||||
|
Loading…
Reference in New Issue
Block a user