diff options
author | Benjamin Tissoires <benjamin.tissoires@redhat.com> | 2014-02-05 22:33:23 +0100 |
---|---|---|
committer | Jiri Kosina <jkosina@suse.cz> | 2014-02-17 14:05:59 +0100 |
commit | 7e845d46b13e7730a3720e978c28117ce422edf9 (patch) | |
tree | 6696e6c38af680b7a2536f4731d106b3619c20bc /drivers/hid/hid-thingm.c | |
parent | HID: remove hid_get_raw_report in struct hid_device (diff) | |
download | linux-7e845d46b13e7730a3720e978c28117ce422edf9.tar.xz linux-7e845d46b13e7730a3720e978c28117ce422edf9.zip |
HID: introduce helper to access hid_output_raw_report()
Add a helper to access hdev->hid_output_raw_report().
To convert the drivers, use the following snippets:
for i in drivers/hid/*.c
do
sed -i.bak "s/[^ \t]*->hid_output_raw_report(/hid_output_raw_report(/g" $i
done
Then manually fix for checkpatch.pl
Reviewed-by: David Herrmann <dh.herrmann@gmail.com>
Signed-off-by: Benjamin Tissoires <benjamin.tissoires@redhat.com>
Signed-off-by: Jiri Kosina <jkosina@suse.cz>
Diffstat (limited to 'drivers/hid/hid-thingm.c')
-rw-r--r-- | drivers/hid/hid-thingm.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/hid/hid-thingm.c b/drivers/hid/hid-thingm.c index 99342cfa0ea2..7dd3197f3b3e 100644 --- a/drivers/hid/hid-thingm.c +++ b/drivers/hid/hid-thingm.c @@ -48,8 +48,8 @@ static int blink1_send_command(struct blink1_data *data, buf[0], buf[1], buf[2], buf[3], buf[4], buf[5], buf[6], buf[7], buf[8]); - ret = data->hdev->hid_output_raw_report(data->hdev, buf, - BLINK1_CMD_SIZE, HID_FEATURE_REPORT); + ret = hid_output_raw_report(data->hdev, buf, BLINK1_CMD_SIZE, + HID_FEATURE_REPORT); return ret < 0 ? ret : 0; } |