25 Feb, 2013

1 commit

  • This allows the hid drivers to be independent from the transport layer.

    The patch was constructed by replacing all occurences of
    usbhid_submit_report() by its hid_hw_request() counterpart.
    Then, drivers not requiring USB_HID anymore have their USB_HID
    dependency cleaned in the Kconfig file.

    Finally, few drivers still depends on USB_HID. Many of them
    are requiring the io wait callback. They are found in the next patch.

    Signed-off-by: Benjamin Tissoires
    Reviewed-by: Mika Westerberg

    For the sensor-hub part:
    Tested-by: Mika Westerberg
    Signed-off-by: Jiri Kosina

    Benjamin Tissoires
     

01 Oct, 2012

1 commit


25 Sep, 2012

1 commit

  • Make sure we keep enough space for terminating NUL character after last
    newline. If we have too much data, replace last byte with '.'s to
    make overflow visible.

    Using hex_dump_to_buffer() is not interesting as it adds more overhead
    and does not append the trailing linefeed.

    Reported-by: Dan Carpenter
    Signed-off-by: Bruno Prémont
    Signed-off-by: Jiri Kosina

    Bruno Prémont
     

05 Sep, 2012

2 commits

  • The first payload byte indicates how many IR data bytes are following, not
    including itself. The IR data bytes appear in pairs as they represent a
    series of 16bit intervals.

    Signed-off-by: Bruno Prémont
    Signed-off-by: Jiri Kosina

    Bruno Prémont
     
  • Matthieu CASTET adjusted picolcd_debug_out_report() to only operate when
    there is an active listener on debugfs for events.

    Do the same on the more important picolcd_debug_raw_event() that is
    called in interrupt context as opposed to picolcd_debug_out_report()
    which happens in whichever context that sends reports to device.

    Signed-off-by: Bruno Prémont
    Signed-off-by: Jiri Kosina

    Bruno Prémont
     

22 Aug, 2012

1 commit

  • m68k/allmodconfig:

    drivers/hid/hid-picolcd_debugfs.c: In function ‘picolcd_debug_reset_write’:
    drivers/hid/hid-picolcd_debugfs.c:54: error: implicit declaration of function ‘copy_from_user’
    drivers/hid/hid-picolcd_debugfs.c: In function ‘picolcd_debug_eeprom_read’:
    drivers/hid/hid-picolcd_debugfs.c:112: error: implicit declaration of function ‘copy_to_user’

    Signed-off-by: Geert Uytterhoeven
    Signed-off-by: Jiri Kosina

    Geert Uytterhoeven
     

15 Aug, 2012

2 commits

  • WARNING: static const char * array should probably be static const char * const
    +static const char *error_codes[] = {

    WARNING: min() should probably be min_t(size_t, 20, s)
    + raw_data[2] = min((size_t)20, s);

    Note: the second min_t suggestion cannot be followed because GCC is not
    smart enough to track constants through it and make
    copy_from_user_overflow() check happy.

    WARNING: min() should probably be min_t(u8, 20, raw_data[2])
    + if (copy_from_user(raw_data+3, u, min((u8)20, raw_data[2])))
    return -EFAULT;

    Signed-off-by: Bruno Prémont
    Signed-off-by: Jiri Kosina

    Bruno Prémont
     
  • In order to make code maintenance easier, split the vairous
    functions into individial files (this removes a bunch of #ifdefs).

    Signed-off-by: Bruno Prémont
    Signed-off-by: Jiri Kosina

    Bruno Prémont