]> asedeno.scripts.mit.edu Git - linux.git/commitdiff
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 3fc18c0a6f11d03762b050c9f0d150073b8af04f..00096f8d249adf0b6d062177eceee1cbc8e82985 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 9276be499303b014e70b8ca6fd29c90ca2305ccb..50172ddd94aea4dd652e70c50a10050772f0a2d2 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 1a469b3c92d49ef6d601b4ff69c10af513016c50..f974f7fc4d79bd7c417b934ff3433b43e25df2d9 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 383e197cf56ad244f492ca59ce9190b09f542a5c..0b614c84822e9a9b92f611d247e210e910526063 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 ba78a7758fb7045b9ff00fd4210c56f9438137ca..3da091b4d297c15569aada014a3c0c9559433047 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 4d65567eefe29a560ae70ffcc698fd46075eb032..dfaf8bc70f73545c2306fe84ff1a3406be1194db 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)