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. 18 11月, 2009 1 次提交
  3. 10 10月, 2009 1 次提交
  4. 20 9月, 2009 2 次提交
  5. 29 7月, 2009 1 次提交
  6. 13 7月, 2009 1 次提交
  7. 16 6月, 2009 1 次提交
  8. 11 6月, 2009 4 次提交
  9. 25 3月, 2009 5 次提交
  10. 18 3月, 2009 1 次提交
  11. 28 1月, 2009 2 次提交
  12. 20 11月, 2008 1 次提交
  13. 14 11月, 2008 2 次提交
  14. 18 10月, 2008 1 次提交
  15. 24 9月, 2008 1 次提交
  16. 23 7月, 2008 2 次提交
  17. 22 7月, 2008 1 次提交
    • H
      USB: cp2101.c fix sparse signedness mismatch warnings · b2bdd1f5
      Harvey Harrison 提交于
      The get/set 2101_config helpers take an unsigned int rather than an
      int.  It is safe to change these in each case and may even produce
      better code as it will be an unsigned divide rather than a signed
      divide in places.  All other manipulation was setting/masking bits
      which will not be affected by the sign change.
      
      Fixes the following sparse warnings:
      drivers/usb/serial/cp2101.c:378:44: warning: incorrect type in argument 3 (different signedness)
      drivers/usb/serial/cp2101.c:378:44:    expected unsigned int *data
      drivers/usb/serial/cp2101.c:378:44:    got int *<noident>
      drivers/usb/serial/cp2101.c:388:40: warning: incorrect type in argument 3 (different signedness)
      drivers/usb/serial/cp2101.c:388:40:    expected unsigned int *data
      drivers/usb/serial/cp2101.c:388:40:    got int *<noident>
      drivers/usb/serial/cp2101.c:413:42: warning: incorrect type in argument 3 (different signedness)
      drivers/usb/serial/cp2101.c:413:42:    expected unsigned int *data
      drivers/usb/serial/cp2101.c:413:42:    got int *<noident>
      drivers/usb/serial/cp2101.c:421:42: warning: incorrect type in argument 3 (different signedness)
      drivers/usb/serial/cp2101.c:421:42:    expected unsigned int *data
      drivers/usb/serial/cp2101.c:421:42:    got int *<noident>
      drivers/usb/serial/cp2101.c:444:42: warning: incorrect type in argument 3 (different signedness)
      drivers/usb/serial/cp2101.c:444:42:    expected unsigned int *data
      drivers/usb/serial/cp2101.c:444:42:    got int *<noident>
      drivers/usb/serial/cp2101.c:451:42: warning: incorrect type in argument 3 (different signedness)
      drivers/usb/serial/cp2101.c:451:42:    expected unsigned int *data
      drivers/usb/serial/cp2101.c:451:42:    got int *<noident>
      drivers/usb/serial/cp2101.c:458:42: warning: incorrect type in argument 3 (different signedness)
      drivers/usb/serial/cp2101.c:458:42:    expected unsigned int *data
      drivers/usb/serial/cp2101.c:458:42:    got int *<noident>
      drivers/usb/serial/cp2101.c:471:42: warning: incorrect type in argument 3 (different signedness)
      drivers/usb/serial/cp2101.c:471:42:    expected unsigned int *data
      drivers/usb/serial/cp2101.c:471:42:    got int *<noident>
      drivers/usb/serial/cp2101.c:481:42: warning: incorrect type in argument 3 (different signedness)
      drivers/usb/serial/cp2101.c:481:42:    expected unsigned int *data
      drivers/usb/serial/cp2101.c:481:42:    got int *<noident>
      drivers/usb/serial/cp2101.c:561:41: warning: incorrect type in argument 3 (different signedness)
      drivers/usb/serial/cp2101.c:561:41:    expected unsigned int *data
      drivers/usb/serial/cp2101.c:561:41:    got int *<noident>
      drivers/usb/serial/cp2101.c:591:45: warning: incorrect type in argument 3 (different signedness)
      drivers/usb/serial/cp2101.c:591:45:    expected unsigned int *data
      drivers/usb/serial/cp2101.c:591:45:    got int *<noident>
      drivers/usb/serial/cp2101.c:597:41: warning: incorrect type in argument 3 (different signedness)
      drivers/usb/serial/cp2101.c:597:41:    expected unsigned int *data
      drivers/usb/serial/cp2101.c:597:41:    got int *<noident>
      drivers/usb/serial/cp2101.c:608:45: warning: incorrect type in argument 3 (different signedness)
      drivers/usb/serial/cp2101.c:608:45:    expected unsigned int *data
      drivers/usb/serial/cp2101.c:608:45:    got int *<noident>
      drivers/usb/serial/cp2101.c:614:41: warning: incorrect type in argument 3 (different signedness)
      drivers/usb/serial/cp2101.c:614:41:    expected unsigned int *data
      drivers/usb/serial/cp2101.c:614:41:    got int *<noident>
      drivers/usb/serial/cp2101.c:623:45: warning: incorrect type in argument 3 (different signedness)
      drivers/usb/serial/cp2101.c:623:45:    expected unsigned int *data
      drivers/usb/serial/cp2101.c:623:45:    got int *<noident>
      drivers/usb/serial/cp2101.c:680:50: warning: incorrect type in argument 3 (different signedness)
      drivers/usb/serial/cp2101.c:680:50:    expected unsigned int *data
      drivers/usb/serial/cp2101.c:680:50:    got int *<noident>
      drivers/usb/serial/cp2101.c:690:43: warning: incorrect type in argument 3 (different signedness)
      drivers/usb/serial/cp2101.c:690:43:    expected unsigned int *data
      drivers/usb/serial/cp2101.c:690:43:    got int *<noident>
      drivers/usb/serial/cp2101.c:715:41: warning: incorrect type in argument 3 (different signedness)
      drivers/usb/serial/cp2101.c:715:41:    expected unsigned int *data
      drivers/usb/serial/cp2101.c:715:41:    got int *<noident>
      Signed-off-by: NHarvey Harrison <harvey.harrison@gmail.com>
      Signed-off-by: NGreg Kroah-Hartman <gregkh@suse.de>
      b2bdd1f5
  18. 12 5月, 2008 1 次提交
  19. 25 4月, 2008 3 次提交
  20. 03 4月, 2008 1 次提交
  21. 02 2月, 2008 2 次提交
  22. 23 12月, 2007 1 次提交
  23. 18 12月, 2007 1 次提交
    • J
      USB: cp2101: new device id · 8be27c2d
      Jeff Long 提交于
      This adds a device ID for the Aerocomm Radio Modem, which uses the
      cp2102.  I'm sure changing num_bulk_in/num_bulk_out to NUM_DONT_CARE
      is the wrong fix, but this is the only device I have with a cp2102,
      so I have no idea what a good global value would be, if there is one.
      Zero didn't work with this device.
      
      From: Jeff Long <JeffLong@mitre.org>
      Signed-off-by: NGreg Kroah-Hartman <gregkh@suse.de>
      8be27c2d
  24. 26 10月, 2007 1 次提交
  25. 13 10月, 2007 2 次提交