Skip to content
Snippets Groups Projects
  1. Jan 23, 2011
  2. Dec 22, 2010
    • Melchior FRANZ's avatar
      USB: add support for Dream Cheeky DL100B Webmail Notifier (1d34:0004) · 73bc7d31
      Melchior FRANZ authored
      So far the USBLED driver only supports Delcom's "USB Visual Signal
      Indicator" (http://www.delcomproducts.com/products_USBLMP.asp). The
      driver generates virtual files "red", "green", and "blue" under the
      device's /sys/ directory, where color values can be read from and
      written to.
      
      This patch adds support for Dream Cheeky's "DL100B Webmail Notifier"
      (http://www.dreamcheeky.com/webmail-notifier -- available from several
      shops, such as http://www.conrad.at/ce/de/product/777048/USB-WEBMAIL
      
      ).
      This device isn't as pretty as Delcom's, but it's *far* cheaper, and
      its 3 LEDs can be set in 32 brightness steps each. The grey envelope
      contour can easily be removed, leaving a rather neutral white box (with
      a few small holes), which is useful for generic signalling purposes.
      Of course, the small circuit board can easily be put into a prettier
      case.
      
      The DL100B device pretends to be a HID, but the HID descriptor shows
      that it's not overly useful as such (see below). The patch therefore
      removes the "HID-ness" (hid-core.c, hid-ids.h), and adds the necessary
      commands to usbled.c. The protocol info comes from the developer's
      manual that Dream Cheeky kindly provided (815DeveloperManual.pdf).
      
      HID descriptor:
      
        0: 05 01   Usage Page 'Generic Desktop Controls'
        2: 09 10   Usage 'Reserved'
        4: a1 01   Collection 'Application (mouse, keyboard)'
        6: 05 00           Usage Page 'Undefined'
        8: 19 10           Usage Minimum = 16
       10: 29 11           Usage Maximum = 17
       12: 15 00           Logical Minimum = 0
       14: 25 0f           Logical Maximum = 15
       16: 75 08           Report Size = 8
       18: 95 08           Report Count = 8
       20: 91 02           Output data *var abs lin pref-state null-pos non-vol bit-field
       22: 19 10           Usage Minimum = 16
       24: 29 11           Usage Maximum = 17
       26: 15 00           Logical Minimum = 0
       28: 25 0f           Logical Maximum = 15
       30: 75 08           Report Size = 8
       32: 95 08           Report Count = 8
       34: 81 00           Input data array abs lin pref-state null-pos non-vol bit-field
       36: c0      End Collection
      
      Signed-off-by: default avatarMelchior FRANZ <mfranz@aon.at>
      Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@suse.de>
      73bc7d31
  3. Nov 15, 2010
  4. Mar 02, 2010
    • Németh Márton's avatar
      USB misc: make USB device id constant · 33b9e162
      Németh Márton authored
      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: default avatarNémeth Márton <nm127@freemail.hu>
      Cc: Julia Lawall <julia@diku.dk>
      Cc: cocci@diku.dk
      Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@suse.de>
      
      33b9e162
  5. Nov 28, 2007
  6. Sep 27, 2006
  7. Jun 30, 2006
  8. Mar 20, 2006
  9. Jan 04, 2006
  10. Nov 17, 2005
  11. Jun 20, 2005
  12. Apr 16, 2005
    • Linus Torvalds's avatar
      Linux-2.6.12-rc2 · 1da177e4
      Linus Torvalds authored
      Initial git repository build. I'm not bothering with the full history,
      even though we have it. We can create a separate "historical" git
      archive of that later if we want to, and in the meantime it's about
      3.2GB when imported into git - space that would just make the early
      git days unnecessarily complicated, when we don't have a lot of good
      infrastructure for it.
      
      Let it rip!
      v2.6.12-rc2
      1da177e4
Loading