Commit 1315e8ba authored by Leonardo Brás's avatar Leonardo Brás Committed by Greg Kroah-Hartman

staging: fbtft: Erases some repetitive usage of function name - Style

Changes this functions to avoid using "blank" on debug twice. Improves log readability.
Signed-off-by: default avatarLeonardo Brás <leobras.c@gmail.com>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent c21cbb5e
...@@ -89,7 +89,7 @@ static void set_addr_win(struct fbtft_par *par, int xs, int ys, int xe, int ye) ...@@ -89,7 +89,7 @@ static void set_addr_win(struct fbtft_par *par, int xs, int ys, int xe, int ye)
static int blank(struct fbtft_par *par, bool on) static int blank(struct fbtft_par *par, bool on)
{ {
fbtft_par_dbg(DEBUG_BLANK, par, "%s(blank=%s)\n", fbtft_par_dbg(DEBUG_BLANK, par, "(%s=%s)\n",
__func__, on ? "true" : "false"); __func__, on ? "true" : "false");
write_reg(par, on ? 0xAE : 0xAF); write_reg(par, on ? 0xAE : 0xAF);
......
...@@ -148,7 +148,7 @@ static void set_addr_win(struct fbtft_par *par, int xs, int ys, int xe, int ye) ...@@ -148,7 +148,7 @@ static void set_addr_win(struct fbtft_par *par, int xs, int ys, int xe, int ye)
static int blank(struct fbtft_par *par, bool on) static int blank(struct fbtft_par *par, bool on)
{ {
fbtft_par_dbg(DEBUG_BLANK, par, "%s(blank=%s)\n", fbtft_par_dbg(DEBUG_BLANK, par, "(%s=%s)\n",
__func__, on ? "true" : "false"); __func__, on ? "true" : "false");
if (on) if (on)
......
...@@ -88,7 +88,7 @@ static void set_addr_win(struct fbtft_par *par, int xs, int ys, int xe, int ye) ...@@ -88,7 +88,7 @@ static void set_addr_win(struct fbtft_par *par, int xs, int ys, int xe, int ye)
static int blank(struct fbtft_par *par, bool on) static int blank(struct fbtft_par *par, bool on)
{ {
fbtft_par_dbg(DEBUG_BLANK, par, "%s(blank=%s)\n", fbtft_par_dbg(DEBUG_BLANK, par, "(%s=%s)\n",
__func__, on ? "true" : "false"); __func__, on ? "true" : "false");
if (on) if (on)
......
...@@ -168,7 +168,7 @@ static int set_gamma(struct fbtft_par *par, u32 *curves) ...@@ -168,7 +168,7 @@ static int set_gamma(struct fbtft_par *par, u32 *curves)
static int blank(struct fbtft_par *par, bool on) static int blank(struct fbtft_par *par, bool on)
{ {
fbtft_par_dbg(DEBUG_BLANK, par, "%s(blank=%s)\n", fbtft_par_dbg(DEBUG_BLANK, par, "(%s=%s)\n",
__func__, on ? "true" : "false"); __func__, on ? "true" : "false");
if (on) if (on)
write_reg(par, 0xAE); write_reg(par, 0xAE);
......
...@@ -163,7 +163,7 @@ static int set_gamma(struct fbtft_par *par, u32 *curves) ...@@ -163,7 +163,7 @@ static int set_gamma(struct fbtft_par *par, u32 *curves)
static int blank(struct fbtft_par *par, bool on) static int blank(struct fbtft_par *par, bool on)
{ {
fbtft_par_dbg(DEBUG_BLANK, par, "%s(blank=%s)\n", fbtft_par_dbg(DEBUG_BLANK, par, "(%s=%s)\n",
__func__, on ? "true" : "false"); __func__, on ? "true" : "false");
if (on) if (on)
write_reg(par, 0xAE); write_reg(par, 0xAE);
......
...@@ -129,7 +129,7 @@ static void set_addr_win(struct fbtft_par *par, int xs, int ys, int xe, int ye) ...@@ -129,7 +129,7 @@ static void set_addr_win(struct fbtft_par *par, int xs, int ys, int xe, int ye)
static int blank(struct fbtft_par *par, bool on) static int blank(struct fbtft_par *par, bool on)
{ {
fbtft_par_dbg(DEBUG_BLANK, par, "%s(blank=%s)\n", fbtft_par_dbg(DEBUG_BLANK, par, "(%s=%s)\n",
__func__, on ? "true" : "false"); __func__, on ? "true" : "false");
if (on) if (on)
......
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