1. 30 May, 2019 1 commit
  2. 31 Jul, 2013 1 commit
    • Benjamin Tissoires's avatar
      HID: trivial devm conversion for special hid drivers · abf832bf
      Benjamin Tissoires authored
      It is safe to use devres allocation within the hid subsystem:
      - the devres release is called _after_ the call to .remove(), meaning
        that no freed pointers will exists while removing the device
      - if a .probe() fails, devres releases all the allocated ressources
        before going to the next driver: there will not be ghost ressources
        attached to a hid device if several drivers are probed.
      
      Given that, we can clean up a little some of the HID drivers. These ones
      are trivial:
      - there is only one kzalloc in the driver
      - the .remove() callback contains only one kfree on top of hid_hw_stop()
      - the error path in the probe is easy enough to be manually checked
      Signed-off-by: default avatarBenjamin Tissoires <benjamin.tissoires@redhat.com>
      Reviewed-by: default avatarAndy Shevchenko <andy.shevchenko@gmail.com>
      Signed-off-by: default avatarJiri Kosina <jkosina@suse.cz>
      abf832bf
  3. 03 Jan, 2013 1 commit
  4. 04 Aug, 2011 1 commit
  5. 10 Dec, 2010 1 commit
    • Joe Perches's avatar
      HID: Add and use hid_<level>: dev_<level> equivalents · 4291ee30
      Joe Perches authored
      Neaten current uses of dev_<level> by adding and using
      hid specific hid_<level> macros.
      
      Convert existing uses of dev_<level> uses to hid_<level>.
      Convert hid-pidff printk uses to hid_<level>.
      
      Remove err_hid and use hid_err instead.
      
      Add missing newlines to logging messages where necessary.
      Coalesce format strings.
      
      Add and use pr_fmt(fmt) KBUILD_MODNAME ": " fmt
      
      Other miscellaneous changes:
      
      Add const struct hid_device * argument to hid-core functions
      extract() and implement() so hid_<level> can be used by them.
      Fix bad indentation in hid-core hid_input_field function
      that calls extract() function above.
      Signed-off-by: default avatarJoe Perches <joe@perches.com>
      Signed-off-by: default avatarJiri Kosina <jkosina@suse.cz>
      4291ee30
  6. 09 Aug, 2010 1 commit
  7. 17 May, 2010 1 commit