* [PATCH] staging: fbtft: replace decimal with 4-digit octal permissions
@ 2017-01-17 23:38 Stefano Manni
2017-01-18 1:16 ` Andy Shevchenko
0 siblings, 1 reply; 2+ messages in thread
From: Stefano Manni @ 2017-01-17 23:38 UTC (permalink / raw)
To: thomas.petazzoni, noralf, gregkh; +Cc: devel, linux-kernel, Stefano Manni
Following error detected by checkpatch.pl:
ERROR: Use 4 digit octal (0777) not decimal permissions
Signed-off-by: Stefano Manni <stefano.manni@gmail.com>
---
drivers/staging/fbtft/flexfb.c | 18 +++++++++---------
1 file changed, 9 insertions(+), 9 deletions(-)
diff --git a/drivers/staging/fbtft/flexfb.c b/drivers/staging/fbtft/flexfb.c
index ded1071..7d2ffbb 100644
--- a/drivers/staging/fbtft/flexfb.c
+++ b/drivers/staging/fbtft/flexfb.c
@@ -27,40 +27,40 @@
#define DRVNAME "flexfb"
static char *chip;
-module_param(chip, charp, 0);
+module_param(chip, charp, 0000);
MODULE_PARM_DESC(chip, "LCD controller");
static unsigned int width;
-module_param(width, uint, 0);
+module_param(width, uint, 0000);
MODULE_PARM_DESC(width, "Display width");
static unsigned int height;
-module_param(height, uint, 0);
+module_param(height, uint, 0000);
MODULE_PARM_DESC(height, "Display height");
static s16 init[512];
static int init_num;
-module_param_array(init, short, &init_num, 0);
+module_param_array(init, short, &init_num, 0000);
MODULE_PARM_DESC(init, "Init sequence");
static unsigned int setaddrwin;
-module_param(setaddrwin, uint, 0);
+module_param(setaddrwin, uint, 0000);
MODULE_PARM_DESC(setaddrwin, "Which set_addr_win() implementation to use");
static unsigned int buswidth = 8;
-module_param(buswidth, uint, 0);
+module_param(buswidth, uint, 0000);
MODULE_PARM_DESC(buswidth, "Width of databus (default: 8)");
static unsigned int regwidth = 8;
-module_param(regwidth, uint, 0);
+module_param(regwidth, uint, 0000);
MODULE_PARM_DESC(regwidth, "Width of controller register (default: 8)");
static bool nobacklight;
-module_param(nobacklight, bool, 0);
+module_param(nobacklight, bool, 0000);
MODULE_PARM_DESC(nobacklight, "Turn off backlight functionality.");
static bool latched;
-module_param(latched, bool, 0);
+module_param(latched, bool, 0000);
MODULE_PARM_DESC(latched, "Use with latched 16-bit databus");
static s16 *initp;
--
2.5.5
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: [PATCH] staging: fbtft: replace decimal with 4-digit octal permissions
2017-01-17 23:38 [PATCH] staging: fbtft: replace decimal with 4-digit octal permissions Stefano Manni
@ 2017-01-18 1:16 ` Andy Shevchenko
0 siblings, 0 replies; 2+ messages in thread
From: Andy Shevchenko @ 2017-01-18 1:16 UTC (permalink / raw)
To: Stefano Manni
Cc: Thomas Petazzoni, Noralf Trønnes, Greg Kroah-Hartman, devel,
linux-kernel
On Wed, Jan 18, 2017 at 1:38 AM, Stefano Manni <stefano.manni@gmail.com> wrote:
> Following error detected by checkpatch.pl:
>
> ERROR: Use 4 digit octal (0777) not decimal permissions
>
> Signed-off-by: Stefano Manni <stefano.manni@gmail.com>
> ---
> drivers/staging/fbtft/flexfb.c | 18 +++++++++---------
> 1 file changed, 9 insertions(+), 9 deletions(-)
>
> diff --git a/drivers/staging/fbtft/flexfb.c b/drivers/staging/fbtft/flexfb.c
> index ded1071..7d2ffbb 100644
> --- a/drivers/staging/fbtft/flexfb.c
> +++ b/drivers/staging/fbtft/flexfb.c
> @@ -27,40 +27,40 @@
> #define DRVNAME "flexfb"
>
> static char *chip;
> -module_param(chip, charp, 0);
> +module_param(chip, charp, 0000);
> MODULE_PARM_DESC(chip, "LCD controller");
Perhaps make them readable back?
0400
--
With Best Regards,
Andy Shevchenko
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2017-01-18 1:25 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2017-01-17 23:38 [PATCH] staging: fbtft: replace decimal with 4-digit octal permissions Stefano Manni
2017-01-18 1:16 ` Andy Shevchenko
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®