04 Jan, 2021

1 commit

  • Do basic editing & correction to hidraw.rst:
    - use "hidraw" consistently except at the beginning of a sentence
    - add archive.org URL for signal11.us since the latter seems to be MIA
    - use a list for 2 URLs so that they don't run together

    Signed-off-by: Randy Dunlap
    Cc: Jiri Kosina
    Cc: Benjamin Tissoires
    Cc: linux-input@vger.kernel.org
    Cc: Alan Ott
    Cc: Jonathan Corbet
    Cc: linux-doc@vger.kernel.org
    Cc: Jonathan Cameron
    Reviewed-by: Jonathan Cameron
    Signed-off-by: Jiri Kosina

    Randy Dunlap
     

27 Nov, 2020

1 commit

  • Currently the hidraw module can only read and write feature HID reports on
    demand, via dedicated ioctls. Input reports are read from the device through
    the read() interface, while output reports are written through the write
    interface().

    This is insufficient; it is desirable in many situations to be able to read and
    write input and output reports through the control interface to cover
    additional scenarios:

    - Reading an input report by its report ID, to get initial state
    - Writing an input report, to set initial input state in the device
    - Reading an output report by its report ID, to obtain current state
    - Writing an output report by its report ID, out of band

    This patch adds these missing ioctl requests to read and write the remaining
    HID report types. Note that not all HID backends will neccesarily support this
    (e.g. while the USB link layer supports setting Input reports, others may not).

    Also included are documentation and example updates. The current hidraw
    documentation states that feature reports read from the device does *not*
    include the report ID, however this is not the case and the returned report
    will have its report ID prepended by conforming HID devices, as the report data
    sent from the device over the control endpoint must be indentical in format to
    those sent over the regular transport.

    Signed-off-by: Dean Camera
    Signed-off-by: Jiri Kosina

    Dean Camera
     

02 Jul, 2019

1 commit

  • Rename the HID documentation files to ReST, add an
    index for them and adjust in order to produce a nice html
    output via the Sphinx build system.

    While here, fix the sysfs example from hid-sensor.txt, that
    has a lot of "?" instead of the proper UTF-8 characters that
    are produced by the tree command.

    At its new index.rst, let's add a :orphan: while this is not linked to
    the main index.rst file, in order to avoid build warnings.

    Signed-off-by: Mauro Carvalho Chehab
    Acked-by: Benjamin Tissoires
    Signed-off-by: Benjamin Tissoires

    Mauro Carvalho Chehab