linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH v2 0/2] fix cx18-/ivtv-driver 'radio' module parameter
@ 2012-01-31 15:27 Danny Kukawka
  2012-01-31 15:27 ` [PATCH v2 1/2] cx18-driver: fix handling of " Danny Kukawka
  2012-01-31 15:27 ` [PATCH v3 2/2] ivtv-driver: " Danny Kukawka
  0 siblings, 2 replies; 3+ messages in thread
From: Danny Kukawka @ 2012-01-31 15:27 UTC (permalink / raw)
  To: Andy Walls
  Cc: Mauro Carvalho Chehab, ivtv-devel, linux-media, linux-kernel,
	Rusty Russell, mchehab

Updated patch versions to fix the 'radio' module parameter
of cx18-driver and ivtv-driver.

Danny Kukawka (2):
  cx18-driver: fix handling of 'radio' module parameter
  ivtv-driver: fix handling of 'radio' module parameter

 drivers/media/video/cx18/cx18-driver.c |    4 ++--
 drivers/media/video/ivtv/ivtv-driver.c |    4 ++--
 2 files changed, 4 insertions(+), 4 deletions(-)

-- 
1.7.7.3


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

* [PATCH v2 1/2] cx18-driver: fix handling of 'radio' module parameter
  2012-01-31 15:27 [PATCH v2 0/2] fix cx18-/ivtv-driver 'radio' module parameter Danny Kukawka
@ 2012-01-31 15:27 ` Danny Kukawka
  2012-01-31 15:27 ` [PATCH v3 2/2] ivtv-driver: " Danny Kukawka
  1 sibling, 0 replies; 3+ messages in thread
From: Danny Kukawka @ 2012-01-31 15:27 UTC (permalink / raw)
  To: Andy Walls
  Cc: Mauro Carvalho Chehab, ivtv-devel, linux-media, linux-kernel,
	Rusty Russell, mchehab

Reverse cx18-driver part of commit
90ab5ee94171b3e28de6bb42ee30b527014e0be7 and change
module_param_array() type from bool to int to fix
compiler warning:

In function ‘__check_radio’:
113:1: warning: return from incompatible pointer type [enabled by default]
At top level:
113:1: warning: initialization from incompatible pointer type [enabled by default]
113:1: warning: (near initialization for ‘__param_arr_radio.num’) [enabled by default]

v2: corrected version, don't change to module_param_named(), change
    all to int/uint

Signed-off-by: Danny Kukawka <danny.kukawka@bisect.de>
---
 drivers/media/video/cx18/cx18-driver.c |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/drivers/media/video/cx18/cx18-driver.c b/drivers/media/video/cx18/cx18-driver.c
index 349bd9c..9355745 100644
--- a/drivers/media/video/cx18/cx18-driver.c
+++ b/drivers/media/video/cx18/cx18-driver.c
@@ -75,7 +75,7 @@ static int radio[CX18_MAX_CARDS] = { -1, -1, -1, -1, -1, -1, -1, -1,
 				     -1, -1, -1, -1, -1, -1, -1, -1 };
 static unsigned cardtype_c = 1;
 static unsigned tuner_c = 1;
-static bool radio_c = 1;
+static unsigned radio_c = 1;
 static char pal[] = "--";
 static char secam[] = "--";
 static char ntsc[] = "-";
@@ -110,7 +110,7 @@ static int retry_mmio = 1;
 int cx18_debug;
 
 module_param_array(tuner, int, &tuner_c, 0644);
-module_param_array(radio, bool, &radio_c, 0644);
+module_param_array(radio, int, &radio_c, 0644);
 module_param_array(cardtype, int, &cardtype_c, 0644);
 module_param_string(pal, pal, sizeof(pal), 0644);
 module_param_string(secam, secam, sizeof(secam), 0644);
-- 
1.7.7.3


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

* [PATCH v3 2/2] ivtv-driver: fix handling of 'radio' module parameter
  2012-01-31 15:27 [PATCH v2 0/2] fix cx18-/ivtv-driver 'radio' module parameter Danny Kukawka
  2012-01-31 15:27 ` [PATCH v2 1/2] cx18-driver: fix handling of " Danny Kukawka
@ 2012-01-31 15:27 ` Danny Kukawka
  1 sibling, 0 replies; 3+ messages in thread
From: Danny Kukawka @ 2012-01-31 15:27 UTC (permalink / raw)
  To: Andy Walls
  Cc: Mauro Carvalho Chehab, ivtv-devel, linux-media, linux-kernel,
	Rusty Russell, mchehab

Reverse ivtv-driver part of commit
90ab5ee94171b3e28de6bb42ee30b527014e0be7 and change
module_param_array() type from bool to int to fix
compiler warning:

In function ‘__check_radio’:
113:1: warning: return from incompatible pointer type [enabled by default]
At top level:
113:1: warning: initialization from incompatible pointer type [enabled by default]
113:1: warning: (near initialization for ‘__param_arr_radio.num’) [enabled by default]

v2: set radio_c to true instead of 1 since it's bool
v3: corrected version, don't change to module_param_named(), change 
    all to int/uint

Signed-off-by: Danny Kukawka <danny.kukawka@bisect.de>
---
 drivers/media/video/ivtv/ivtv-driver.c |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/drivers/media/video/ivtv/ivtv-driver.c b/drivers/media/video/ivtv/ivtv-driver.c
index 3949b7d..06192ae 100644
--- a/drivers/media/video/ivtv/ivtv-driver.c
+++ b/drivers/media/video/ivtv/ivtv-driver.c
@@ -99,7 +99,7 @@ static int i2c_clock_period[IVTV_MAX_CARDS] = { -1, -1, -1, -1, -1, -1, -1, -1,
 
 static unsigned int cardtype_c = 1;
 static unsigned int tuner_c = 1;
-static bool radio_c = 1;
+static unsigned int radio_c = 1;
 static unsigned int i2c_clock_period_c = 1;
 static char pal[] = "---";
 static char secam[] = "--";
@@ -139,7 +139,7 @@ static int tunertype = -1;
 static int newi2c = -1;
 
 module_param_array(tuner, int, &tuner_c, 0644);
-module_param_array(radio, bool, &radio_c, 0644);
+module_param_array(radio, int, &radio_c, 0644);
 module_param_array(cardtype, int, &cardtype_c, 0644);
 module_param_string(pal, pal, sizeof(pal), 0644);
 module_param_string(secam, secam, sizeof(secam), 0644);
-- 
1.7.7.3


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

end of thread, other threads:[~2012-01-31 15:27 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2012-01-31 15:27 [PATCH v2 0/2] fix cx18-/ivtv-driver 'radio' module parameter Danny Kukawka
2012-01-31 15:27 ` [PATCH v2 1/2] cx18-driver: fix handling of " Danny Kukawka
2012-01-31 15:27 ` [PATCH v3 2/2] ivtv-driver: " Danny Kukawka

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).