diff options
author | Danny Kukawka <danny.kukawka@bisect.de> | 2012-02-22 07:24:55 -0500 |
---|---|---|
committer | Mauro Carvalho Chehab <mchehab@redhat.com> | 2012-03-08 09:07:45 -0500 |
commit | b3f5badaa1108f9174f068b915700a9e2f2d9ae2 (patch) | |
tree | 99925de7fc86a5d7f2748d16852822f6009dbfac /drivers/media | |
parent | 0d47bf5585b1240141c8fb84627e5c1a54ab7a6d (diff) |
[media] cx18-driver: fix handling of 'radio' module parameter
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>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
Diffstat (limited to 'drivers/media')
-rw-r--r-- | 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 349bd9c2aff..935574511ff 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, | |||
75 | -1, -1, -1, -1, -1, -1, -1, -1 }; | 75 | -1, -1, -1, -1, -1, -1, -1, -1 }; |
76 | static unsigned cardtype_c = 1; | 76 | static unsigned cardtype_c = 1; |
77 | static unsigned tuner_c = 1; | 77 | static unsigned tuner_c = 1; |
78 | static bool radio_c = 1; | 78 | static unsigned radio_c = 1; |
79 | static char pal[] = "--"; | 79 | static char pal[] = "--"; |
80 | static char secam[] = "--"; | 80 | static char secam[] = "--"; |
81 | static char ntsc[] = "-"; | 81 | static char ntsc[] = "-"; |
@@ -110,7 +110,7 @@ static int retry_mmio = 1; | |||
110 | int cx18_debug; | 110 | int cx18_debug; |
111 | 111 | ||
112 | module_param_array(tuner, int, &tuner_c, 0644); | 112 | module_param_array(tuner, int, &tuner_c, 0644); |
113 | module_param_array(radio, bool, &radio_c, 0644); | 113 | module_param_array(radio, int, &radio_c, 0644); |
114 | module_param_array(cardtype, int, &cardtype_c, 0644); | 114 | module_param_array(cardtype, int, &cardtype_c, 0644); |
115 | module_param_string(pal, pal, sizeof(pal), 0644); | 115 | module_param_string(pal, pal, sizeof(pal), 0644); |
116 | module_param_string(secam, secam, sizeof(secam), 0644); | 116 | module_param_string(secam, secam, sizeof(secam), 0644); |