All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH 3/4] video: fbdev: sm712fb.c: fixed prefer unsigned int warning
@ 2017-07-04 15:24   ` Lynn Lei
  0 siblings, 0 replies; 4+ messages in thread
From: Lynn Lei @ 2017-07-04 15:24 UTC (permalink / raw)
  To: sudipm.mukherjee; +Cc: teddy.wang, b.zolnierkie, linux-fbdev, linux-kernel

Fixed several prefer 'unsigned int' over 'unsigned' warnings checked by
scripts/checkpatch.pl:
  Prefer 'unsigned int' to bare use of 'unsigned'

Signed-off-by: Lynn Lei <lynnl.wit@gmail.com>
---
 drivers/video/fbdev/sm712fb.c | 9 +++++----
 1 file changed, 5 insertions(+), 4 deletions(-)

diff --git a/drivers/video/fbdev/sm712fb.c b/drivers/video/fbdev/sm712fb.c
index d492a9e9ac50..172e94146878 100644
--- a/drivers/video/fbdev/sm712fb.c
+++ b/drivers/video/fbdev/sm712fb.c
@@ -798,8 +798,8 @@ static void __init sm7xx_vga_setup(char *options)
 	}
 }
 
-static void sm712_setpalette(int regno, unsigned red, unsigned green,
-			     unsigned blue, struct fb_info *info)
+static void sm712_setpalette(int regno, unsigned int red, unsigned int green,
+			     unsigned int blue, struct fb_info *info)
 {
 	/* set bit 5:4 = 01 (write LCD RAM only) */
 	smtc_seqw(0x66, (smtc_seqr(0x66) & 0xC3) | 0x10);
@@ -896,8 +896,9 @@ static int smtc_blank(int blank_mode, struct fb_info *info)
 	return 0;
 }
 
-static int smtc_setcolreg(unsigned regno, unsigned red, unsigned green,
-			  unsigned blue, unsigned trans, struct fb_info *info)
+static int smtc_setcolreg(unsigned int regno, unsigned int red,
+			  unsigned int green, unsigned int blue,
+			  unsigned int trans, struct fb_info *info)
 {
 	struct smtcfb_info *sfb;
 	u32 val;
-- 
2.13.2

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

* [PATCH 3/4] video: fbdev: sm712fb.c: fixed prefer unsigned int warning
@ 2017-07-04 15:24   ` Lynn Lei
  0 siblings, 0 replies; 4+ messages in thread
From: Lynn Lei @ 2017-07-04 15:24 UTC (permalink / raw)
  To: sudipm.mukherjee; +Cc: teddy.wang, b.zolnierkie, linux-fbdev, linux-kernel

Fixed several prefer 'unsigned int' over 'unsigned' warnings checked by
scripts/checkpatch.pl:
  Prefer 'unsigned int' to bare use of 'unsigned'

Signed-off-by: Lynn Lei <lynnl.wit@gmail.com>
---
 drivers/video/fbdev/sm712fb.c | 9 +++++----
 1 file changed, 5 insertions(+), 4 deletions(-)

diff --git a/drivers/video/fbdev/sm712fb.c b/drivers/video/fbdev/sm712fb.c
index d492a9e9ac50..172e94146878 100644
--- a/drivers/video/fbdev/sm712fb.c
+++ b/drivers/video/fbdev/sm712fb.c
@@ -798,8 +798,8 @@ static void __init sm7xx_vga_setup(char *options)
 	}
 }
 
-static void sm712_setpalette(int regno, unsigned red, unsigned green,
-			     unsigned blue, struct fb_info *info)
+static void sm712_setpalette(int regno, unsigned int red, unsigned int green,
+			     unsigned int blue, struct fb_info *info)
 {
 	/* set bit 5:4 = 01 (write LCD RAM only) */
 	smtc_seqw(0x66, (smtc_seqr(0x66) & 0xC3) | 0x10);
@@ -896,8 +896,9 @@ static int smtc_blank(int blank_mode, struct fb_info *info)
 	return 0;
 }
 
-static int smtc_setcolreg(unsigned regno, unsigned red, unsigned green,
-			  unsigned blue, unsigned trans, struct fb_info *info)
+static int smtc_setcolreg(unsigned int regno, unsigned int red,
+			  unsigned int green, unsigned int blue,
+			  unsigned int trans, struct fb_info *info)
 {
 	struct smtcfb_info *sfb;
 	u32 val;
-- 
2.13.2


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

* Re: [PATCH 3/4] video: fbdev: sm712fb.c: fixed prefer unsigned int warning
  2017-07-04 15:24   ` Lynn Lei
@ 2017-08-01 12:14     ` Bartlomiej Zolnierkiewicz
  -1 siblings, 0 replies; 4+ messages in thread
From: Bartlomiej Zolnierkiewicz @ 2017-08-01 12:14 UTC (permalink / raw)
  To: Lynn Lei; +Cc: sudipm.mukherjee, teddy.wang, linux-fbdev, linux-kernel

On Tuesday, July 04, 2017 11:24:17 PM Lynn Lei wrote:
> Fixed several prefer 'unsigned int' over 'unsigned' warnings checked by
> scripts/checkpatch.pl:
>   Prefer 'unsigned int' to bare use of 'unsigned'
> 
> Signed-off-by: Lynn Lei <lynnl.wit@gmail.com>

Patch queued for 4.14, thanks.

Best regards,
--
Bartlomiej Zolnierkiewicz
Samsung R&D Institute Poland
Samsung Electronics

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

* Re: [PATCH 3/4] video: fbdev: sm712fb.c: fixed prefer unsigned int warning
@ 2017-08-01 12:14     ` Bartlomiej Zolnierkiewicz
  0 siblings, 0 replies; 4+ messages in thread
From: Bartlomiej Zolnierkiewicz @ 2017-08-01 12:14 UTC (permalink / raw)
  To: Lynn Lei; +Cc: sudipm.mukherjee, teddy.wang, linux-fbdev, linux-kernel

On Tuesday, July 04, 2017 11:24:17 PM Lynn Lei wrote:
> Fixed several prefer 'unsigned int' over 'unsigned' warnings checked by
> scripts/checkpatch.pl:
>   Prefer 'unsigned int' to bare use of 'unsigned'
> 
> Signed-off-by: Lynn Lei <lynnl.wit@gmail.com>

Patch queued for 4.14, thanks.

Best regards,
--
Bartlomiej Zolnierkiewicz
Samsung R&D Institute Poland
Samsung Electronics


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

end of thread, other threads:[~2017-08-01 12:14 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
     [not found] <CGME20170704152425epcas1p35d84c9ae15ec2e16c1bfa3851d137b18@epcas1p3.samsung.com>
2017-07-04 15:24 ` [PATCH 3/4] video: fbdev: sm712fb.c: fixed prefer unsigned int warning Lynn Lei
2017-07-04 15:24   ` Lynn Lei
2017-08-01 12:14   ` Bartlomiej Zolnierkiewicz
2017-08-01 12:14     ` Bartlomiej Zolnierkiewicz

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.