Staging: sm750fb: use unsigned int instead unsigned
authorMuraru Mihaela <mihaela.muraru21@gmail.com>
Mon, 3 Oct 2016 14:55:18 +0000 (17:55 +0300)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sun, 16 Oct 2016 08:24:18 +0000 (10:24 +0200)
This patch fixes a WARNING: Prefer 'unsigned int' to bare use of
'unsigned', found by checkpatch.pl. By fixing this the types of the parameters of the function become more explicit.

Signed-off-by: Muraru Mihaela <mihaela.muraru21@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/sm750fb/sm750.c

index 7d90e250142c2bba706a6743e7926bf8751bbefb..8770a46c3c6778d3fcb9357d86fd4c0a6a1202b2 100644 (file)
@@ -575,11 +575,11 @@ static int lynxfb_ops_check_var(struct fb_var_screeninfo *var,
        return hw_sm750_crtc_checkMode(crtc, var);
 }
 
-static int lynxfb_ops_setcolreg(unsigned regno,
-                               unsigned red,
-                               unsigned green,
-                               unsigned blue,
-                               unsigned transp,
+static int lynxfb_ops_setcolreg(unsigned int regno,
+                               unsigned int red,
+                               unsigned int green,
+                               unsigned int blue,
+                               unsigned int transp,
                                struct fb_info *info)
 {
        struct lynxfb_par *par;