1. 26 7月, 2014 1 次提交
    • D
      [media] rc-core: remove protocol arrays · c5540fbb
      David Härdeman 提交于
      The basic API of rc-core used to be:
      
      	dev = rc_allocate_device();
      	dev->x = a;
      	dev->y = b;
      	dev->z = c;
      	rc_register_device();
      
      which is a pretty common pattern in the kernel, after the introduction of
      protocol arrays the API looks something like:
      
      	dev = rc_allocate_device();
      	dev->x = a;
      	rc_set_allowed_protocols(dev, RC_BIT_X);
      	dev->z = c;
      	rc_register_device();
      
      There's no real need for the protocols to be an array, so change it
      back to be consistent (and in preparation for the following patches).
      
      [m.chehab@samsung.com: added missing changes at some files]
      Signed-off-by: NDavid Härdeman <david@hardeman.nu>
      Signed-off-by: NMauro Carvalho Chehab <m.chehab@samsung.com>
      c5540fbb
  2. 07 7月, 2014 1 次提交
  3. 30 6月, 2014 1 次提交
    • J
      HID: sensor-hub: fix potential memory leak · ceec6340
      Jiri Slaby 提交于
      hsdev is not freed in sensor_hub_probe when kasprintf inside the for
      loop fails. This is because hsdev is not set to platform_data yet (to
      be freed by the code in the err_no_mem label). So free the memory
      explicitly in the 'if' branch, as this is the only place where this is
      (and will) be needed.
      
      Reported-by: coverity
      Signed-off-by: NJiri Slaby <jslaby@suse.cz>
      Cc: srinivas pandruvada <srinivas.pandruvada@intel.com>
      Signed-off-by: NJiri Kosina <jkosina@suse.cz>
      ceec6340
  4. 27 6月, 2014 1 次提交
  5. 12 6月, 2014 1 次提交
  6. 11 6月, 2014 1 次提交
  7. 10 6月, 2014 1 次提交
  8. 03 6月, 2014 2 次提交
  9. 02 6月, 2014 2 次提交
  10. 28 5月, 2014 2 次提交
  11. 27 5月, 2014 1 次提交
  12. 22 5月, 2014 1 次提交
  13. 21 5月, 2014 1 次提交
  14. 20 5月, 2014 1 次提交
  15. 16 5月, 2014 1 次提交
  16. 14 5月, 2014 3 次提交
  17. 13 5月, 2014 3 次提交
  18. 06 5月, 2014 1 次提交
  19. 05 5月, 2014 2 次提交
  20. 28 4月, 2014 1 次提交
  21. 25 4月, 2014 7 次提交
  22. 24 4月, 2014 1 次提交
  23. 15 4月, 2014 4 次提交
    • V
      HID: thingm: add support for blink(1) mk2 · 3121b1c4
      Vivien Didelot 提交于
      The blink(1) mk2 is a new version of the blink(1) USB RGB LED. The new
      generation has 2 individually-controllable RGB chips.
      
      This patch adds support for this device to the thingm driver, which
      registers 3 new standard LED class instances for the second RGB chip.
      
      Note that the 'n' (set) command does not support setting a color for a
      single RGB chip, so it was changed to 'c' (fade) with a timeout of 0.
      Signed-off-by: NVivien Didelot <vivien.didelot@savoirfairelinux.com>
      Signed-off-by: NJiri Kosina <jkosina@suse.cz>
      3121b1c4
    • V
      HID: thingm: refactor blink(1) support · f70ed8a6
      Vivien Didelot 提交于
      This patch refactors the way the thingm driver registers a blink(1) LED.
      In order to make the driver simpler and more standard, drop the "rgb"
      sysfs attribute and create one instance of LED class per RGB channel.
      
      Actually, the name of the LED class instance registered for a blink(1)
      device is "blink1::ABCD", where ABCD is the last 4 chars of the serial
      number. The driver now registers 3 instances per RGB chip, named
      "thingmX:{red,green,blue}:ledY" where X is the hidraw minor number and Y
      is the RGB chip number (as seen by the firmware).
      
      This patch also uses work queues to defer calls with the device, which
      now allows triggers to work as expected with this LED device.
      
      Also remove the brightness structure field and the brightness_get
      backend, as it is already handled by the LED class, and changes the
      prefix of functions and structures to thingm_ to match the driver name.
      Signed-off-by: NVivien Didelot <vivien.didelot@savoirfairelinux.com>
      Signed-off-by: NJiri Kosina <jkosina@suse.cz>
      f70ed8a6
    • V
      HID: thingm: remove the "fade" sysfs attribute · aee114fd
      Vivien Didelot 提交于
      As for the "play" sysfs attribute, remove this other non-standard
      attribute, so the driver only implements what is required to switch the
      LED on and off. Thus, a fade time won't be ideal for some fast-changing
      triggers.
      Signed-off-by: NVivien Didelot <vivien.didelot@savoirfairelinux.com>
      Signed-off-by: NJiri Kosina <jkosina@suse.cz>
      aee114fd
    • V
      HID: thingm: remove the "play" sysfs attribute · 21200ad1
      Vivien Didelot 提交于
      When the thingm driver registers an instance of LED class, it creates a
      "play" sysfs attribute for this blink(1) specific feature.
      
      Since this feature is not specific to the RGB chip but to the HID device
      itself, let's remove this attribute from the LED instance and only
      implement what is useful to switch on and off the LED.
      
      This feature is still easily accessible through hidraw.
      Signed-off-by: NVivien Didelot <vivien.didelot@savoirfairelinux.com>
      Signed-off-by: NJiri Kosina <jkosina@suse.cz>
      21200ad1