funsoft.c 920 B

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