1. 16 Dec, 2011 1 commit
    • Jiri Kosina's avatar
      HID: introduce proper dependency of HID_BATTERY on POWER_SUPPLY · 7e69ba7c
      Jiri Kosina authored
      ppc6xx_defconfig reveals this:
      
      drivers/built-in.o: In function `hidinput_cleanup_battery': drivers/hid/hid-input.c:351: undefined reference to`power_supply_unregister'
      drivers/built-in.o: In function `hidinput_setup_battery': drivers/hid/hid-input.c:338: undefined reference to `power_supply_register'
      make[1]: *** [.tmp_vmlinux1] Error 1
      
      The defconfig in question doens't mention either option and kbuild is
      genertaing
      
      	CONFIG_HID_BATTERY_STRENGTH=y
      	CONFIG_POWER_SUPPLY=m
      
      which is wrong. Put a proper dependency in place.
      Reported-by: default avatarTony Breeds <tony@bakeyournoodle.com>
      Signed-off-by: default avatarJiri Kosina <jkosina@suse.cz>
      7e69ba7c
  2. 15 Dec, 2011 1 commit
    • Jiri Kosina's avatar
      HID: make parser more verbose about parsing errors by default · 8c3d52fc
      Jiri Kosina authored
      Most of the parsing errors (typically resulting in device not being claimed
      by HID subsystem at all) are reported only in debugging mode, which makes
      root-causing problems with buggy devices unnecessarily more difficult.
      
      Convert reporting of important HID report descriptor parsing errors to
      be reported through hid_err() / hid_warn() instead of dbg_hid().
      Signed-off-by: default avatarJiri Kosina <jkosina@suse.cz>
      8c3d52fc
  3. 30 Nov, 2011 1 commit
  4. 28 Nov, 2011 1 commit
    • Jeremy Fitzhardinge's avatar
      HID: hid-input: add support for HID devices reporting Battery Strength · 4f5ca836
      Jeremy Fitzhardinge authored
      Some HID devices, such as my Bluetooth mouse, report their battery
      strength as an event.  Rather than passing it through as a strange
      absolute input event, this patch registers it with the power_supply
      subsystem as a battery, so that the device's Battery Strength can be
      reported to usermode.
      
      The battery appears in sysfs names
      /sys/class/power_supply/hid-<UNIQ>-battery, and it is a child of the
      battery-containing device, so it should be clear what it's the battery of.
      
      Unfortunately on my current Fedora 16 system, while the battery does
      appear in the UI, it is listed as a Laptop Battery with 0% charge (since
      it ignores the "capacity" property of the battery and instead computes
      it from the "energy*" fields, which we can't supply given the limited
      information contained within the HID Report).
      
      Still, this patch is the first step.
      Signed-off-by: default avatarJeremy Fitzhardinge <jeremy@goop.org>
      Signed-off-by: default avatarJiri Kosina <jkosina@suse.cz>
      4f5ca836
  5. 23 Nov, 2011 2 commits
  6. 22 Nov, 2011 2 commits
  7. 20 Nov, 2011 1 commit
  8. 19 Nov, 2011 2 commits
  9. 16 Nov, 2011 3 commits
  10. 11 Nov, 2011 1 commit
  11. 03 Nov, 2011 4 commits
  12. 02 Nov, 2011 21 commits