CHROMIUM: usb: gadget: f_accessory: add .raw_request callback
authorMark Kuo <mkuo@nvidia.com>
Mon, 11 Jan 2016 11:07:12 +0000 (19:07 +0800)
committerAmit Pundir <amit.pundir@linaro.org>
Thu, 7 Apr 2016 11:20:01 +0000 (16:50 +0530)
After this upstream commit: 3c86726cfe38952f0366f86acfbbb025813ec1c2,
.raw_request is mandatory in hid_ll_driver structure, hence add an empty
raw_request() function.

BUG=chrome-os-partner:49140
TEST=none

Change-Id: Idd0bbe6960aad2c557376e4a24827d7e1df8e023
Signed-off-by: Mark Kuo <mkuo@nvidia.com>
Reviewed-on: https://chromium-review.googlesource.com/321038
Commit-Ready: Andrew Bresticker <abrestic@chromium.org>
Tested-by: Andrew Bresticker <abrestic@chromium.org>
Reviewed-by: Andrew Bresticker <abrestic@chromium.org>
drivers/usb/gadget/function/f_accessory.c

index 1be93a7ca4a1a35e79ffdda130079b4a8e1e974b..c621235601439b1cf220cb98bb59fe4830d9b812 100644 (file)
@@ -404,12 +404,19 @@ static void acc_hid_close(struct hid_device *hid)
 {
 }
 
+static int acc_hid_raw_request(struct hid_device *hid, unsigned char reportnum,
+       __u8 *buf, size_t len, unsigned char rtype, int reqtype)
+{
+       return 0;
+}
+
 static struct hid_ll_driver acc_hid_ll_driver = {
        .parse = acc_hid_parse,
        .start = acc_hid_start,
        .stop = acc_hid_stop,
        .open = acc_hid_open,
        .close = acc_hid_close,
+       .raw_request = acc_hid_raw_request,
 };
 
 static struct acc_hid_dev *acc_hid_new(struct acc_dev *dev,