linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH 1/2] FBTFT: fb_sh: Fix alignment and style problems Fixed Coding style issues Signed-off-by: Tamir Suliman <tsuliman@linuxvaults.com>
@ 2018-06-30 14:32 Tamir Suliman
  2018-06-30 16:09 ` Greg KH
  2018-06-30 16:20 ` Joe Perches
  0 siblings, 2 replies; 4+ messages in thread
From: Tamir Suliman @ 2018-06-30 14:32 UTC (permalink / raw)
  To: thomas.petazzoni; +Cc: gregkh, linux-kernel, devel, Tamir Suliman

---
 drivers/staging/fbtft/fb_sh1106.c | 26 +++++++++++++-------------
 1 file changed, 13 insertions(+), 13 deletions(-)

diff --git a/drivers/staging/fbtft/fb_sh1106.c b/drivers/staging/fbtft/fb_sh1106.c
index 3fc18c0..c18763b 100644
--- a/drivers/staging/fbtft/fb_sh1106.c
+++ b/drivers/staging/fbtft/fb_sh1106.c
@@ -36,27 +36,27 @@ static int init_display(struct fbtft_par *par)
 	par->fbtftops.reset(par);
 
 	/* Set Display OFF */
-	write_reg(par, 0xAE);
+		write_reg(par, 0xAE);
 
 	/* Set Display Clock Divide Ratio/ Oscillator Frequency */
-	write_reg(par, 0xD5, 0x80);
+		write_reg(par, 0xD5, 0x80);
 
 	/* Set Multiplex Ratio */
-	write_reg(par, 0xA8, par->info->var.yres - 1);
+		write_reg(par, 0xA8, par->info->var.yres - 1);
 
 	/* Set Display Offset */
-	write_reg(par, 0xD3, 0x00);
+		write_reg(par, 0xD3, 0x00);
 
 	/* Set Display Start Line */
-	write_reg(par, 0x40 | 0x0);
+		write_reg(par, 0x40 | 0x0);
 
 	/* Set Segment Re-map */
 	/* column address 127 is mapped to SEG0 */
-	write_reg(par, 0xA0 | 0x1);
+		write_reg(par, 0xA0 | 0x1);
 
 	/* Set COM Output Scan Direction */
 	/* remapped mode. Scan from COM[N-1] to COM0 */
-	write_reg(par, 0xC8);
+		write_reg(par, 0xC8);
 
 	/* Set COM Pins Hardware Configuration */
 	if (par->info->var.yres == 64)
@@ -70,15 +70,15 @@ static int init_display(struct fbtft_par *par)
 		write_reg(par, 0xDA, 0x02);
 
 	/* Set Pre-charge Period */
-	write_reg(par, 0xD9, 0xF1);
+		write_reg(par, 0xD9, 0xF1);
 
 	/* Set VCOMH Deselect Level */
-	write_reg(par, 0xDB, 0x40);
+		write_reg(par, 0xDB, 0x40);
 
 	/* Set Display ON */
-	write_reg(par, 0xAF);
+		write_reg(par, 0xAF);
 
-	msleep(150);
+		msleep(150);
 
 	return 0;
 }
@@ -89,8 +89,8 @@ 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",
-		      __func__, on ? "true" : "false");
+	fbtft_par_dbg(DEBUG_BLANK, par, "%s(_func_=%s)\n",
+			__func__, on ? "true" : "false");
 
 	write_reg(par, on ? 0xAE : 0xAF);
 
-- 
1.8.3.1


^ permalink raw reply related	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2018-07-04 19:58 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2018-06-30 14:32 [PATCH 1/2] FBTFT: fb_sh: Fix alignment and style problems Fixed Coding style issues Signed-off-by: Tamir Suliman <tsuliman@linuxvaults.com> Tamir Suliman
2018-06-30 16:09 ` Greg KH
2018-06-30 16:20 ` Joe Perches
2018-07-04 19:58   ` Tamir Suliman

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).