airspy.c (f26e8817b235d8764363bffcc9cbfc61867371f2) airspy.c (7fb2e072d41b1da5ddf29a1ba62f0e380d94a855)
1/*
2 * AirSpy SDR driver
3 *
4 * Copyright (C) 2014 Antti Palosaari <crope@iki.fi>
5 *
6 * This program is free software; you can redistribute it and/or modify
7 * it under the terms of the GNU General Public License as published by
8 * the Free Software Foundation; either version 2 of the License, or

--- 1073 unchanged lines hidden (view full) ---

1082 v4l2_ctrl_handler_free(&s->hdl);
1083 v4l2_device_unregister(&s->v4l2_dev);
1084err_free_mem:
1085 kfree(s);
1086 return ret;
1087}
1088
1089/* USB device ID list */
1/*
2 * AirSpy SDR driver
3 *
4 * Copyright (C) 2014 Antti Palosaari <crope@iki.fi>
5 *
6 * This program is free software; you can redistribute it and/or modify
7 * it under the terms of the GNU General Public License as published by
8 * the Free Software Foundation; either version 2 of the License, or

--- 1073 unchanged lines hidden (view full) ---

1082 v4l2_ctrl_handler_free(&s->hdl);
1083 v4l2_device_unregister(&s->v4l2_dev);
1084err_free_mem:
1085 kfree(s);
1086 return ret;
1087}
1088
1089/* USB device ID list */
1090static struct usb_device_id airspy_id_table[] = {
1090static const struct usb_device_id airspy_id_table[] = {
1091 { USB_DEVICE(0x1d50, 0x60a1) }, /* AirSpy */
1092 { }
1093};
1094MODULE_DEVICE_TABLE(usb, airspy_id_table);
1095
1096/* USB subsystem interface */
1097static struct usb_driver airspy_driver = {
1098 .name = KBUILD_MODNAME,
1099 .probe = airspy_probe,
1100 .disconnect = airspy_disconnect,
1101 .id_table = airspy_id_table,
1102};
1103
1104module_usb_driver(airspy_driver);
1105
1106MODULE_AUTHOR("Antti Palosaari <crope@iki.fi>");
1107MODULE_DESCRIPTION("AirSpy SDR");
1108MODULE_LICENSE("GPL");
1091 { USB_DEVICE(0x1d50, 0x60a1) }, /* AirSpy */
1092 { }
1093};
1094MODULE_DEVICE_TABLE(usb, airspy_id_table);
1095
1096/* USB subsystem interface */
1097static struct usb_driver airspy_driver = {
1098 .name = KBUILD_MODNAME,
1099 .probe = airspy_probe,
1100 .disconnect = airspy_disconnect,
1101 .id_table = airspy_id_table,
1102};
1103
1104module_usb_driver(airspy_driver);
1105
1106MODULE_AUTHOR("Antti Palosaari <crope@iki.fi>");
1107MODULE_DESCRIPTION("AirSpy SDR");
1108MODULE_LICENSE("GPL");