hackrf.c (f26e8817b235d8764363bffcc9cbfc61867371f2) hackrf.c (7fb2e072d41b1da5ddf29a1ba62f0e380d94a855)
1/*
2 * HackRF 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

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

1540err_kfree:
1541 kfree(dev);
1542err:
1543 dev_dbg(&intf->dev, "failed=%d\n", ret);
1544 return ret;
1545}
1546
1547/* USB device ID list */
1/*
2 * HackRF 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

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

1540err_kfree:
1541 kfree(dev);
1542err:
1543 dev_dbg(&intf->dev, "failed=%d\n", ret);
1544 return ret;
1545}
1546
1547/* USB device ID list */
1548static struct usb_device_id hackrf_id_table[] = {
1548static const struct usb_device_id hackrf_id_table[] = {
1549 { USB_DEVICE(0x1d50, 0x6089) }, /* HackRF One */
1550 { }
1551};
1552MODULE_DEVICE_TABLE(usb, hackrf_id_table);
1553
1554/* USB subsystem interface */
1555static struct usb_driver hackrf_driver = {
1556 .name = KBUILD_MODNAME,
1557 .probe = hackrf_probe,
1558 .disconnect = hackrf_disconnect,
1559 .id_table = hackrf_id_table,
1560};
1561
1562module_usb_driver(hackrf_driver);
1563
1564MODULE_AUTHOR("Antti Palosaari <crope@iki.fi>");
1565MODULE_DESCRIPTION("HackRF");
1566MODULE_LICENSE("GPL");
1549 { USB_DEVICE(0x1d50, 0x6089) }, /* HackRF One */
1550 { }
1551};
1552MODULE_DEVICE_TABLE(usb, hackrf_id_table);
1553
1554/* USB subsystem interface */
1555static struct usb_driver hackrf_driver = {
1556 .name = KBUILD_MODNAME,
1557 .probe = hackrf_probe,
1558 .disconnect = hackrf_disconnect,
1559 .id_table = hackrf_id_table,
1560};
1561
1562module_usb_driver(hackrf_driver);
1563
1564MODULE_AUTHOR("Antti Palosaari <crope@iki.fi>");
1565MODULE_DESCRIPTION("HackRF");
1566MODULE_LICENSE("GPL");