1. 03 3月, 2010 1 次提交
    • N
      USB serial: make USB device id constant · 7d40d7e8
      Németh Márton 提交于
      The id_table field of the struct usb_device_id is constant in <linux/usb.h>
      so it is worth to make the initialization data also constant.
      
      The semantic match that finds this kind of pattern is as follows:
      (http://coccinelle.lip6.fr/)
      
      // <smpl>
      @r@
      disable decl_init,const_decl_init;
      identifier I1, I2, x;
      @@
      	struct I1 {
      	  ...
      	  const struct I2 *x;
      	  ...
      	};
      @s@
      identifier r.I1, y;
      identifier r.x, E;
      @@
      	struct I1 y = {
      	  .x = E,
      	};
      @c@
      identifier r.I2;
      identifier s.E;
      @@
      	const struct I2 E[] = ... ;
      @depends on !c@
      identifier r.I2;
      identifier s.E;
      @@
      +	const
      	struct I2 E[] = ...;
      // </smpl>
      Signed-off-by: NNémeth Márton <nm127@freemail.hu>
      Cc: Julia Lawall <julia@diku.dk>
      Cc: cocci@diku.dk
      Signed-off-by: NGreg Kroah-Hartman <gregkh@suse.de>
      7d40d7e8
  2. 24 12月, 2009 1 次提交
  3. 12 12月, 2009 3 次提交
  4. 01 12月, 2009 1 次提交
  5. 18 11月, 2009 1 次提交
    • Z
      USB: option.c: add support for D-Link DWM-162-U5 · ff854ce0
      Zhang Le 提交于
      Add D-Link DWM-162-U5 device id 1e0e:ce16 into option driver. The device
      has 4 interfaces, of which 1 is handled by storage and the other 3 by
      option driver.
      
      The device appears first as CD-only 05c6:2100 device and must be
      switched to 1e0e:ce16 mode either by using "eject CD" or usb_modeswitch.
      
      The MessageContent for usb_modeswitch.conf is:
      "55534243e0c26a85000000000000061b000000020000000000000000000000"
      Signed-off-by: NZhang Le <r0bertz@gentoo.org>
      Cc: stable <stable@kernel.org>
      Signed-off-by: NGreg Kroah-Hartman <gregkh@suse.de>
      ff854ce0
  6. 31 10月, 2009 1 次提交
  7. 15 10月, 2009 1 次提交
  8. 10 10月, 2009 2 次提交
  9. 23 9月, 2009 3 次提交
  10. 20 9月, 2009 1 次提交
  11. 29 7月, 2009 6 次提交
  12. 13 7月, 2009 5 次提交
  13. 16 6月, 2009 4 次提交
  14. 11 6月, 2009 1 次提交
  15. 24 4月, 2009 1 次提交
  16. 18 4月, 2009 1 次提交
    • P
      USB: option: Add ids for D-Link DWM-652 3.5G modem · c00deaa5
      Pascal Terjan 提交于
      This patch allows D-Link DWM-652 3.5G modem to work.
      It is an express card but was only tested with the provided usb adapter as I
      don't have machines with express card connector.
      
      /dev/ttyUSB{0,1,2} get created, and using comgt on ttyUSB1 works fine :
      
      [root@plop tmp]# comgt -d /dev/ttyUSB1 -e
      
      Enter PIN number: XXXX
      Waiting for Registration..(120 sec max).
      Registered on Home network: "Orange France",2
      Signal Quality: 15,99
      
      From: Pascal Terjan <pterjan@mandriva.com>
      Signed-off-by: NGreg Kroah-Hartman <gregkh@suse.de>
      c00deaa5
  17. 25 3月, 2009 1 次提交
  18. 18 3月, 2009 4 次提交
  19. 28 2月, 2009 2 次提交