suunto.c 977 B

1234567891011121314151617181920212223242526272829303132333435363738394041
  1. /*
  2. * Suunto ANT+ USB Driver
  3. *
  4. * Copyright (C) 2013 Greg Kroah-Hartman <gregkh@linuxfoundation.org>
  5. * Copyright (C) 2013 Linux Foundation
  6. *
  7. * This program is free software; you can redistribute it and/or modify it
  8. * under the terms of the GNU General Public License version 2 as published by
  9. * the Free Software Foundation only.
  10. */
  11. #include <linux/kernel.h>
  12. #include <linux/init.h>
  13. #include <linux/tty.h>
  14. #include <linux/module.h>
  15. #include <linux/usb.h>
  16. #include <linux/usb/serial.h>
  17. #include <linux/uaccess.h>
  18. static const struct usb_device_id id_table[] = {
  19. { USB_DEVICE(0x0fcf, 0x1008) },
  20. { },
  21. };
  22. MODULE_DEVICE_TABLE(usb, id_table);
  23. static struct usb_serial_driver suunto_device = {
  24. .driver = {
  25. .owner = THIS_MODULE,
  26. .name = KBUILD_MODNAME,
  27. },
  28. .id_table = id_table,
  29. .num_ports = 1,
  30. };
  31. static struct usb_serial_driver * const serial_drivers[] = {
  32. &suunto_device,
  33. NULL,
  34. };
  35. module_usb_serial_driver(serial_drivers, id_table);
  36. MODULE_LICENSE("GPL");