diff options
author | Michael Krufky <mkrufky@linuxtv.org> | 2006-09-23 19:01:29 -0400 |
---|---|---|
committer | Mauro Carvalho Chehab <mchehab@infradead.org> | 2007-02-21 10:34:49 -0500 |
commit | baa2ed09000de94c02e4b6690a6097314d282928 (patch) | |
tree | 5123e41cfc13a5eb304adc64e9281bbe2e02778d /drivers/media/dvb/dvb-usb/m920x.c | |
parent | 2aef7d0fa0e35a3a26733bef147196c2926bd228 (diff) |
V4L/DVB (5126): M920x: cleanups after rename from megasky.[ch]
Signed-off-by: Michael Krufky <mkrufky@linuxtv.org>
Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
Diffstat (limited to 'drivers/media/dvb/dvb-usb/m920x.c')
-rw-r--r-- | drivers/media/dvb/dvb-usb/m920x.c | 70 |
1 files changed, 35 insertions, 35 deletions
diff --git a/drivers/media/dvb/dvb-usb/m920x.c b/drivers/media/dvb/dvb-usb/m920x.c index c50f484c843b..ba2c5c91da09 100644 --- a/drivers/media/dvb/dvb-usb/m920x.c +++ b/drivers/media/dvb/dvb-usb/m920x.c | |||
@@ -8,14 +8,15 @@ | |||
8 | * | 8 | * |
9 | * see Documentation/dvb/README.dvb-usb for more information | 9 | * see Documentation/dvb/README.dvb-usb for more information |
10 | */ | 10 | */ |
11 | |||
11 | #include "m920x.h" | 12 | #include "m920x.h" |
12 | 13 | ||
13 | #include "mt352.h" | 14 | #include "mt352.h" |
14 | #include "mt352_priv.h" | 15 | #include "mt352_priv.h" |
15 | 16 | ||
16 | /* debug */ | 17 | /* debug */ |
17 | int dvb_usb_megasky_debug; | 18 | int dvb_usb_m920x_debug; |
18 | module_param_named(debug,dvb_usb_megasky_debug, int, 0644); | 19 | module_param_named(debug,dvb_usb_m920x_debug, int, 0644); |
19 | MODULE_PARM_DESC(debug, "set debugging level (1=rc (or-able))." DVB_USB_DEBUG_STATUS); | 20 | MODULE_PARM_DESC(debug, "set debugging level (1=rc (or-able))." DVB_USB_DEBUG_STATUS); |
20 | 21 | ||
21 | static struct dvb_usb_rc_key megasky_rc_keys [] = { | 22 | static struct dvb_usb_rc_key megasky_rc_keys [] = { |
@@ -194,25 +195,25 @@ static int megasky_mt352_demod_init(struct dvb_frontend *fe) | |||
194 | { | 195 | { |
195 | int i; | 196 | int i; |
196 | static u8 buf1[] = { | 197 | static u8 buf1[] = { |
197 | CONFIG, 0x3d, | 198 | CONFIG, 0x3d, |
198 | CLOCK_CTL, 0x30, | 199 | CLOCK_CTL, 0x30, |
199 | RESET, 0x80, | 200 | RESET, 0x80, |
200 | ADC_CTL_1, 0x40, | 201 | ADC_CTL_1, 0x40, |
201 | AGC_TARGET, 0x1c, | 202 | AGC_TARGET, 0x1c, |
202 | AGC_CTL, 0x20, | 203 | AGC_CTL, 0x20, |
203 | 0x69, 0x00, | 204 | 0x69, 0x00, |
204 | 0x6a, 0xff, | 205 | 0x6a, 0xff, |
205 | 0x6b, 0xff, | 206 | 0x6b, 0xff, |
206 | 0x6c, 0x40, | 207 | 0x6c, 0x40, |
207 | 0x6d, 0xff, | 208 | 0x6d, 0xff, |
208 | 0x6e, 0x00, | 209 | 0x6e, 0x00, |
209 | 0x6f, 0x40, | 210 | 0x6f, 0x40, |
210 | 0x70, 0x40, | 211 | 0x70, 0x40, |
211 | 0x93, 0x1a, | 212 | 0x93, 0x1a, |
212 | 0xb5, 0x7a, | 213 | 0xb5, 0x7a, |
213 | ACQ_CTL, 0x50, | 214 | ACQ_CTL, 0x50, |
214 | INPUT_FREQ_1, 0x31, | 215 | INPUT_FREQ_1, 0x31, |
215 | INPUT_FREQ_0, 0x05, | 216 | INPUT_FREQ_0, 0x05, |
216 | }; | 217 | }; |
217 | 218 | ||
218 | for (i = 0; i < ARRAY_SIZE(buf1); i += 2) | 219 | for (i = 0; i < ARRAY_SIZE(buf1); i += 2) |
@@ -225,7 +226,6 @@ static int megasky_mt352_demod_init(struct dvb_frontend *fe) | |||
225 | 226 | ||
226 | struct mt352_state; | 227 | struct mt352_state; |
227 | 228 | ||
228 | |||
229 | #define W 0 | 229 | #define W 0 |
230 | #define R 1 | 230 | #define R 1 |
231 | /* Not actual hw limits. */ | 231 | /* Not actual hw limits. */ |
@@ -479,11 +479,11 @@ static int megasky_probe(struct usb_interface *intf, const struct usb_device_id | |||
479 | return ret; | 479 | return ret; |
480 | } | 480 | } |
481 | 481 | ||
482 | static struct usb_device_id megasky_table [] = { | 482 | static struct usb_device_id m920x_table [] = { |
483 | { USB_DEVICE(USB_VID_MSI, USB_PID_MSI_MEGASKY580) }, | 483 | { USB_DEVICE(USB_VID_MSI, USB_PID_MSI_MEGASKY580) }, |
484 | { } /* Terminating entry */ | 484 | { } /* Terminating entry */ |
485 | }; | 485 | }; |
486 | MODULE_DEVICE_TABLE (usb, megasky_table); | 486 | MODULE_DEVICE_TABLE (usb, m920x_table); |
487 | 487 | ||
488 | static int set_filter(struct dvb_usb_device *d, int type, int idx, int pid) | 488 | static int set_filter(struct dvb_usb_device *d, int type, int idx, int pid) |
489 | { | 489 | { |
@@ -651,26 +651,26 @@ static struct dvb_usb_properties megasky_properties = { | |||
651 | .num_device_descs = 1, | 651 | .num_device_descs = 1, |
652 | .devices = { | 652 | .devices = { |
653 | { "MSI Mega Sky 580 DVB-T USB2.0", | 653 | { "MSI Mega Sky 580 DVB-T USB2.0", |
654 | { &megasky_table[0], NULL }, | 654 | { &m920x_table[0], NULL }, |
655 | { NULL }, | 655 | { NULL }, |
656 | }, | 656 | }, |
657 | { NULL }, | 657 | { NULL }, |
658 | } | 658 | } |
659 | }; | 659 | }; |
660 | 660 | ||
661 | static struct usb_driver megasky_driver = { | 661 | static struct usb_driver m920x_driver = { |
662 | .name = "dvb_usb_megasky", | 662 | .name = "dvb_usb_m920x", |
663 | .probe = megasky_probe, | 663 | .probe = megasky_probe, |
664 | .disconnect = dvb_usb_device_exit, | 664 | .disconnect = dvb_usb_device_exit, |
665 | .id_table = megasky_table, | 665 | .id_table = m920x_table, |
666 | }; | 666 | }; |
667 | 667 | ||
668 | /* module stuff */ | 668 | /* module stuff */ |
669 | static int __init megasky_module_init(void) | 669 | static int __init m920x_module_init(void) |
670 | { | 670 | { |
671 | int ret; | 671 | int ret; |
672 | 672 | ||
673 | if ((ret = usb_register(&megasky_driver))) { | 673 | if ((ret = usb_register(&m920x_driver))) { |
674 | err("usb_register failed. Error number %d", ret); | 674 | err("usb_register failed. Error number %d", ret); |
675 | return ret; | 675 | return ret; |
676 | } | 676 | } |
@@ -678,16 +678,16 @@ static int __init megasky_module_init(void) | |||
678 | return 0; | 678 | return 0; |
679 | } | 679 | } |
680 | 680 | ||
681 | static void __exit megasky_module_exit(void) | 681 | static void __exit m920x_module_exit(void) |
682 | { | 682 | { |
683 | /* deregister this driver from the USB subsystem */ | 683 | /* deregister this driver from the USB subsystem */ |
684 | usb_deregister(&megasky_driver); | 684 | usb_deregister(&m920x_driver); |
685 | } | 685 | } |
686 | 686 | ||
687 | module_init (megasky_module_init); | 687 | module_init (m920x_module_init); |
688 | module_exit (megasky_module_exit); | 688 | module_exit (m920x_module_exit); |
689 | 689 | ||
690 | MODULE_AUTHOR("Aapo Tahkola <aet@rasterburn.org>"); | 690 | MODULE_AUTHOR("Aapo Tahkola <aet@rasterburn.org>"); |
691 | MODULE_DESCRIPTION("Driver for MSI Mega Sky 580 DVB-T USB2.0"); | 691 | MODULE_DESCRIPTION("Driver MSI Mega Sky 580 DVB-T USB2.0 / Uli m920x"); |
692 | MODULE_VERSION("0.1"); | 692 | MODULE_VERSION("0.1"); |
693 | MODULE_LICENSE("GPL"); | 693 | MODULE_LICENSE("GPL"); |