1. 28 Aug, 2014 33 commits
  2. 27 Aug, 2014 3 commits
  3. 26 Aug, 2014 2 commits
  4. 25 Aug, 2014 2 commits
    • Himangi Saraogi's avatar
      orinoco_usb: use USB API functions rather than constants · 7bb75da1
      Himangi Saraogi authored
      This patch introduces the use of the functions
      usb_endpoint_is_bulk_in(epd) and usb_endpoint_is_bulk_out(epd).
      
      The semantic patch that makes these changes is as follows:
      
      @@ struct usb_endpoint_descriptor *epd; @@
      
      - ((epd->bmAttributes & \(USB_ENDPOINT_XFERTYPE_MASK\|3\)) ==
      - \(USB_ENDPOINT_XFER_BULK\|2\))
      + usb_endpoint_xfer_bulk(epd)
      
      @@ struct usb_endpoint_descriptor *epd; @@
      
      - ((epd->bEndpointAddress & \(USB_ENDPOINT_DIR_MASK\|0x80\)) ==
      -  \(USB_DIR_IN\|0x80\))
      + usb_endpoint_dir_in(epd)
      
      @@ struct usb_endpoint_descriptor *epd; @@
      
      - ((epd->bEndpointAddress & \(USB_ENDPOINT_DIR_MASK\|0x80\)) ==
      -  \(USB_DIR_OUT\|0\))
      + usb_endpoint_dir_out(epd)
      
      @@ struct usb_endpoint_descriptor *epd; @@
      
      - (usb_endpoint_xfer_bulk(epd) && usb_endpoint_dir_in(epd))
      + usb_endpoint_is_bulk_in(epd)
      
      @@ struct usb_endpoint_descriptor *epd; @@
      
      - (usb_endpoint_xfer_bulk(epd) && usb_endpoint_dir_out(epd))
      + usb_endpoint_is_bulk_out(epd)
      Signed-off-by: default avatarHimangi Saraogi <himangi774@gmail.com>
      Acked-by: default avatarJulia Lawall <julia.lawall@lip6.fr>
      Signed-off-by: default avatarJohn W. Linville <linville@tuxdriver.com>
      7bb75da1
    • Himangi Saraogi's avatar
      atmel_cs: Remove typedef local_info_t · b9395df9
      Himangi Saraogi authored
      The Linux kernel coding style guidelines suggest not using typedefs
      for structure types. This patch gets rid of the typedef for
      local_info_t. Also, the name of the struct is changed to drop the _t,
      to make the name look less typedef-like.
      
      The following Coccinelle semantic patch detects the case:
      
      @tn@
      identifier i;
      type td;
      @@
      
      -typedef
       struct i { ... }
      -td
       ;
      
      @@
      type tn.td;
      identifier tn.i;
      @@
      
      -td
      + struct i
      Signed-off-by: default avatarHimangi Saraogi <himangi774@gmail.com>
      Acked-by: default avatarJulia Lawall <julia.lawall@lip6.fr>
      Signed-off-by: default avatarJohn W. Linville <linville@tuxdriver.com>
      b9395df9