HID: sony: Refactor the output report sending functions
authorFrank Praznik <frank.praznik@gmail.com>
Wed, 11 Nov 2015 14:49:37 +0000 (09:49 -0500)
committerJiri Kosina <jkosina@suse.cz>
Thu, 19 Nov 2015 10:16:13 +0000 (11:16 +0100)
commitd8aaccda7144df1c3d35251313197aed4cbea7bc
tree2507d00cba61c66b0e2254b64550a6d6a35ee33c
parent6f1da317ac1df15f442b5fd37be7740c7cb55057
HID: sony: Refactor the output report sending functions

Refactor the output report sending functions to allow for the sending of output
reports without enqueuing a work item.  Output reports for any device can now be
sent via the send_output_report function pointer in the sony_sc struct which
points to the appropriate output function.  The individual state worker
functions have been replaced with a universal sony_state_worker function which
uses this function pointer.

Signed-off-by: Frank Praznik <frank.praznik@gmail.com>
Signed-off-by: Jiri Kosina <jkosina@suse.cz>
drivers/hid/hid-sony.c