staging: fbtft: Erases some repetitive usage of function name - Style
authorLeonardo Brás <leobras.c@gmail.com>
Wed, 8 Aug 2018 00:29:18 +0000 (21:29 -0300)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 8 Aug 2018 12:23:16 +0000 (14:23 +0200)
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>
drivers/staging/fbtft/fb_sh1106.c
drivers/staging/fbtft/fb_ssd1306.c
drivers/staging/fbtft/fb_ssd1325.c
drivers/staging/fbtft/fb_ssd1331.c
drivers/staging/fbtft/fb_ssd1351.c
drivers/staging/fbtft/fb_uc1611.c

index 3fc18c0..00096f8 100644 (file)
@@ -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);
index 9276be4..50172dd 100644 (file)
@@ -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)
index 1a469b3..f974f7f 100644 (file)
@@ -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)
index 383e197..0b614c8 100644 (file)
@@ -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);
index ba78a77..3da091b 100644 (file)
@@ -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);
index 4d65567..dfaf8bc 100644 (file)
@@ -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)