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: Leonardo Brás <leobras.c@gmail.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
Родитель
c21cbb5ee3
Коммит
1315e8bad8
|
@ -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)
|
||||
{
|
||||
fbtft_par_dbg(DEBUG_BLANK, par, "%s(blank=%s)\n",
|
||||
fbtft_par_dbg(DEBUG_BLANK, par, "(%s=%s)\n",
|
||||
__func__, on ? "true" : "false");
|
||||
|
||||
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)
|
|||
|
||||
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");
|
||||
|
||||
if (on)
|
||||
|
|
|
@ -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)
|
||||
{
|
||||
fbtft_par_dbg(DEBUG_BLANK, par, "%s(blank=%s)\n",
|
||||
fbtft_par_dbg(DEBUG_BLANK, par, "(%s=%s)\n",
|
||||
__func__, on ? "true" : "false");
|
||||
|
||||
if (on)
|
||||
|
|
|
@ -168,7 +168,7 @@ static int set_gamma(struct fbtft_par *par, u32 *curves)
|
|||
|
||||
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");
|
||||
if (on)
|
||||
write_reg(par, 0xAE);
|
||||
|
|
|
@ -163,7 +163,7 @@ static int set_gamma(struct fbtft_par *par, u32 *curves)
|
|||
|
||||
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");
|
||||
if (on)
|
||||
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)
|
|||
|
||||
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");
|
||||
|
||||
if (on)
|
||||
|
|
Загрузка…
Ссылка в новой задаче