All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] staging: fbtft: Avoid CamelCase.
@ 2019-03-05  6:00 Bhagyashri Dighole
  2019-03-05  7:42 ` [Outreachy kernel] " Julia Lawall
  2019-03-05  7:48 ` Greg Kroah-Hartman
  0 siblings, 2 replies; 6+ messages in thread
From: Bhagyashri Dighole @ 2019-03-05  6:00 UTC (permalink / raw)
  To: Greg Kroah-Hartman; +Cc: Outreachy, Bhagyashri

Fix coding style issues detected by checkpatch.pl `CHECK: Avoid
CamelCase`.

Signed-off-by: Bhagyashri Dighole <digholebhagyashri@gmail.com>
---
 drivers/staging/fbtft/fb_watterott.c | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)

diff --git a/drivers/staging/fbtft/fb_watterott.c b/drivers/staging/fbtft/fb_watterott.c
index 0a5206d..7e9c57b 100644
--- a/drivers/staging/fbtft/fb_watterott.c
+++ b/drivers/staging/fbtft/fb_watterott.c
@@ -90,13 +90,13 @@ static int write_vmem(struct fbtft_par *par, size_t offset, size_t len)
 	return 0;
 }
 
-#define RGB565toRGB323(c) ((((c) & 0xE000) >> 8) |\
+#define rgb565torgb323(c) ((((c) & 0xE000) >> 8) |\
 			   (((c) & 000600) >> 6) |\
 			   (((c) & 0x001C) >> 2))
-#define RGB565toRGB332(c) ((((c) & 0xE000) >> 8) |\
+#define rgb565torgb332(c) ((((c) & 0xE000) >> 8) |\
 			   (((c) & 000700) >> 6) |\
 			   (((c) & 0x0018) >> 3))
-#define RGB565toRGB233(c) ((((c) & 0xC000) >> 8) |\
+#define rgb565torgb233(c) ((((c) & 0xC000) >> 8) |\
 			   (((c) & 000700) >> 5) |\
 			   (((c) & 0x001C) >> 2))
 
@@ -122,7 +122,7 @@ static int write_vmem_8bit(struct fbtft_par *par, size_t offset, size_t len)
 	for (i = start_line; i <= end_line; i++) {
 		pos[1] = cpu_to_be16(i);
 		for (j = 0; j < par->info->var.xres; j++) {
-			buf8[j] = RGB565toRGB332(*vmem16);
+			buf8[j] = rgb565torgb332(*vmem16);
 			vmem16++;
 		}
 		ret = par->fbtftops.write(par,
-- 
2.7.4



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

end of thread, other threads:[~2019-03-05 10:17 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2019-03-05  6:00 [PATCH] staging: fbtft: Avoid CamelCase Bhagyashri Dighole
2019-03-05  7:42 ` [Outreachy kernel] " Julia Lawall
2019-03-05  7:48 ` Greg Kroah-Hartman
2019-03-05  9:42   ` Bhagyashri Dighole
2019-03-05  9:48     ` Greg Kroah-Hartman
2019-03-05 10:17     ` [Outreachy kernel] " Julia Lawall

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.