diff options
author | Mike Isely <isely@pobox.com> | 2009-03-07 00:08:58 -0500 |
---|---|---|
committer | Mauro Carvalho Chehab <mchehab@redhat.com> | 2009-03-30 11:43:39 -0400 |
commit | 69ea3c1cbc1d78d9f522e18e20c73e6ef9f8e39f (patch) | |
tree | 6fc52bba5f52cb51726c654eacd950e1fcfb2e7b /drivers | |
parent | dd5f322f35e2a9a4d8ca5dd7c192a4137a7f5031 (diff) |
V4L/DVB (11200): pvrusb2: Make a bunch of dvb config structures const (trivial)
Signed-off-by: Mike Isely <isely@pobox.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
Diffstat (limited to 'drivers')
-rw-r--r-- | drivers/media/video/pvrusb2/pvrusb2-devattr.c | 10 | ||||
-rw-r--r-- | drivers/media/video/pvrusb2/pvrusb2-devattr.h | 2 | ||||
-rw-r--r-- | drivers/media/video/pvrusb2/pvrusb2-dvb.c | 2 |
3 files changed, 7 insertions, 7 deletions
diff --git a/drivers/media/video/pvrusb2/pvrusb2-devattr.c b/drivers/media/video/pvrusb2/pvrusb2-devattr.c index de4daa7f48b0..e6c876f3a35a 100644 --- a/drivers/media/video/pvrusb2/pvrusb2-devattr.c +++ b/drivers/media/video/pvrusb2/pvrusb2-devattr.c | |||
@@ -181,7 +181,7 @@ static int pvr2_lgh06xf_attach(struct pvr2_dvb_adapter *adap) | |||
181 | return 0; | 181 | return 0; |
182 | } | 182 | } |
183 | 183 | ||
184 | static struct pvr2_dvb_props pvr2_onair_creator_fe_props = { | 184 | static const struct pvr2_dvb_props pvr2_onair_creator_fe_props = { |
185 | .frontend_attach = pvr2_lgdt3303_attach, | 185 | .frontend_attach = pvr2_lgdt3303_attach, |
186 | .tuner_attach = pvr2_lgh06xf_attach, | 186 | .tuner_attach = pvr2_lgh06xf_attach, |
187 | }; | 187 | }; |
@@ -241,7 +241,7 @@ static int pvr2_fcv1236d_attach(struct pvr2_dvb_adapter *adap) | |||
241 | return 0; | 241 | return 0; |
242 | } | 242 | } |
243 | 243 | ||
244 | static struct pvr2_dvb_props pvr2_onair_usb2_fe_props = { | 244 | static const struct pvr2_dvb_props pvr2_onair_usb2_fe_props = { |
245 | .frontend_attach = pvr2_lgdt3302_attach, | 245 | .frontend_attach = pvr2_lgdt3302_attach, |
246 | .tuner_attach = pvr2_fcv1236d_attach, | 246 | .tuner_attach = pvr2_fcv1236d_attach, |
247 | }; | 247 | }; |
@@ -314,7 +314,7 @@ static int pvr2_73xxx_tda18271_8295_attach(struct pvr2_dvb_adapter *adap) | |||
314 | return 0; | 314 | return 0; |
315 | } | 315 | } |
316 | 316 | ||
317 | static struct pvr2_dvb_props pvr2_73xxx_dvb_props = { | 317 | static const struct pvr2_dvb_props pvr2_73xxx_dvb_props = { |
318 | .frontend_attach = pvr2_tda10048_attach, | 318 | .frontend_attach = pvr2_tda10048_attach, |
319 | .tuner_attach = pvr2_73xxx_tda18271_8295_attach, | 319 | .tuner_attach = pvr2_73xxx_tda18271_8295_attach, |
320 | }; | 320 | }; |
@@ -419,12 +419,12 @@ static int pvr2_tda18271_8295_attach(struct pvr2_dvb_adapter *adap) | |||
419 | return 0; | 419 | return 0; |
420 | } | 420 | } |
421 | 421 | ||
422 | static struct pvr2_dvb_props pvr2_750xx_dvb_props = { | 422 | static const struct pvr2_dvb_props pvr2_750xx_dvb_props = { |
423 | .frontend_attach = pvr2_s5h1409_attach, | 423 | .frontend_attach = pvr2_s5h1409_attach, |
424 | .tuner_attach = pvr2_tda18271_8295_attach, | 424 | .tuner_attach = pvr2_tda18271_8295_attach, |
425 | }; | 425 | }; |
426 | 426 | ||
427 | static struct pvr2_dvb_props pvr2_751xx_dvb_props = { | 427 | static const struct pvr2_dvb_props pvr2_751xx_dvb_props = { |
428 | .frontend_attach = pvr2_s5h1411_attach, | 428 | .frontend_attach = pvr2_s5h1411_attach, |
429 | .tuner_attach = pvr2_tda18271_8295_attach, | 429 | .tuner_attach = pvr2_tda18271_8295_attach, |
430 | }; | 430 | }; |
diff --git a/drivers/media/video/pvrusb2/pvrusb2-devattr.h b/drivers/media/video/pvrusb2/pvrusb2-devattr.h index 30aa7a440990..ed9cdedcc71b 100644 --- a/drivers/media/video/pvrusb2/pvrusb2-devattr.h +++ b/drivers/media/video/pvrusb2/pvrusb2-devattr.h | |||
@@ -103,7 +103,7 @@ struct pvr2_device_desc { | |||
103 | 103 | ||
104 | #ifdef CONFIG_VIDEO_PVRUSB2_DVB | 104 | #ifdef CONFIG_VIDEO_PVRUSB2_DVB |
105 | /* callback functions to handle attachment of digital tuner & demod */ | 105 | /* callback functions to handle attachment of digital tuner & demod */ |
106 | struct pvr2_dvb_props *dvb_props; | 106 | const struct pvr2_dvb_props *dvb_props; |
107 | 107 | ||
108 | #endif | 108 | #endif |
109 | /* Initial standard bits to use for this device, if not zero. | 109 | /* Initial standard bits to use for this device, if not zero. |
diff --git a/drivers/media/video/pvrusb2/pvrusb2-dvb.c b/drivers/media/video/pvrusb2/pvrusb2-dvb.c index 77b3c3385066..b7f5c49b1dbc 100644 --- a/drivers/media/video/pvrusb2/pvrusb2-dvb.c +++ b/drivers/media/video/pvrusb2/pvrusb2-dvb.c | |||
@@ -321,7 +321,7 @@ static int pvr2_dvb_adapter_exit(struct pvr2_dvb_adapter *adap) | |||
321 | static int pvr2_dvb_frontend_init(struct pvr2_dvb_adapter *adap) | 321 | static int pvr2_dvb_frontend_init(struct pvr2_dvb_adapter *adap) |
322 | { | 322 | { |
323 | struct pvr2_hdw *hdw = adap->channel.hdw; | 323 | struct pvr2_hdw *hdw = adap->channel.hdw; |
324 | struct pvr2_dvb_props *dvb_props = hdw->hdw_desc->dvb_props; | 324 | const struct pvr2_dvb_props *dvb_props = hdw->hdw_desc->dvb_props; |
325 | int ret = 0; | 325 | int ret = 0; |
326 | 326 | ||
327 | if (dvb_props == NULL) { | 327 | if (dvb_props == NULL) { |