Staging: sm750fb: use unsigned int instead unsigned
Subsystems (2)
PATCH 1/1 Staging: sm750fb: use unsigned int instead unsigned
This patch fixes a WARNING: Prefer 'unsigned int' to bare use of 'unsigned', found by checkpatch.pl. By fixing this the parameters of the function became more verbose.
--- drivers/staging/sm750fb/sm750.c | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-)
drivers/staging/sm750fb/sm750.c +5 -5
@@ -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;
Signature · 1 line
2.7.4
Quoted 3 lines · Muraru Mihaela
This patch fixes a WARNING: Prefer 'unsigned int' to bare use of 'unsigned', found by checkpatch.pl. By fixing this the parameters of the function became more verbose.
Actually, the word "verbose" has a negative connotation - lots of words with little content. Maybe "the types of the parameters of the function become more explicit".
julia
Quoted 37 lines
Signed-off-by Muraru Mihaela <[email protected]>--- drivers/staging/sm750fb/sm750.c | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-)drivers/staging/sm750fb/sm750.c +5
-6@@ -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; --2.7.4
--
You received this message because you are subscribed to the Google Groups "outreachy-kernel" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To post to this group, send email to [email protected].
To view this discussion on the web visit https://groups.google.com/d/msgid/outreachy-kernel/20161003143921.GA7591%40domino-MS-16Y1.
For more options, visit https://groups.google.com/d/optout.