Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1579294 > unrolled thread

[PATCH] Staging: media: bcm2048: Fixed coding style issue.

Started byRan Algawi <ran.algawi@gmail.com>
First post2017-02-12 22:50 +0100
Last post2017-02-13 12:30 +0100
Articles 2 — 2 participants

Back to article view | Back to linux.kernel


Contents

  [PATCH] Staging: media: bcm2048: Fixed coding style issue. Ran Algawi <ran.algawi@gmail.com> - 2017-02-12 22:50 +0100
    Re: [PATCH] Staging: media: bcm2048: Fixed coding style issue. Hans Verkuil <hverkuil@xs4all.nl> - 2017-02-13 12:30 +0100

#1579294 — [PATCH] Staging: media: bcm2048: Fixed coding style issue.

FromRan Algawi <ran.algawi@gmail.com>
Date2017-02-12 22:50 +0100
Subject[PATCH] Staging: media: bcm2048: Fixed coding style issue.
Message-ID<taabT-33p-1@gated-at.bofh.it>
Fixed a coding style issue, where an octal value was needed insted of decimal.

Signed-off-by: Ran Algawi <ran.algawi@gmail.com>
---
 drivers/staging/media/bcm2048/radio-bcm2048.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/staging/media/bcm2048/radio-bcm2048.c b/drivers/staging/media/bcm2048/radio-bcm2048.c
index 37bd439..d605c41 100644
--- a/drivers/staging/media/bcm2048/radio-bcm2048.c
+++ b/drivers/staging/media/bcm2048/radio-bcm2048.c
@@ -300,7 +300,7 @@ struct bcm2048_device {
 };
 
 static int radio_nr = -1;	/* radio device minor (-1 ==> auto assign) */
-module_param(radio_nr, int, 0);
+module_param(radio_nr, int, 0000);
 MODULE_PARM_DESC(radio_nr,
 		 "Minor number for radio device (-1 ==> auto assign)");
 
-- 
2.7.4

[toc] | [next] | [standalone]


#1579645

FromHans Verkuil <hverkuil@xs4all.nl>
Date2017-02-13 12:30 +0100
Message-ID<tamZs-323-5@gated-at.bofh.it>
In reply to#1579294
On 02/12/2017 10:45 PM, Ran Algawi wrote:
> Fixed a coding style issue, where an octal value was needed insted of decimal.
> 
> Signed-off-by: Ran Algawi <ran.algawi@gmail.com>
> ---
>  drivers/staging/media/bcm2048/radio-bcm2048.c | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
> 
> diff --git a/drivers/staging/media/bcm2048/radio-bcm2048.c b/drivers/staging/media/bcm2048/radio-bcm2048.c
> index 37bd439..d605c41 100644
> --- a/drivers/staging/media/bcm2048/radio-bcm2048.c
> +++ b/drivers/staging/media/bcm2048/radio-bcm2048.c
> @@ -300,7 +300,7 @@ struct bcm2048_device {
>  };
>  
>  static int radio_nr = -1;	/* radio device minor (-1 ==> auto assign) */
> -module_param(radio_nr, int, 0);
> +module_param(radio_nr, int, 0000);

Let's make this 0444, just like most other media drivers with a radio_nr param.

In fact, I propose that you make this patch more useful by looking at the output of:

git grep module_param drivers/media/|grep '\(video_nr\)\|\(radio_nr\)\|\(vbi_nr\)'

and change all to 0444. I see a mix of 0000, 0444 and 0644 being used, but 0444
is really the only sensible one.

	Hans

>  MODULE_PARM_DESC(radio_nr,
>  		 "Minor number for radio device (-1 ==> auto assign)");
>  
> 

[toc] | [prev] | [standalone]


Back to top | Article view | linux.kernel


csiph-web