diff options
| author | Anson Jacob <ansonjacob.aj@gmail.com> | 2016-11-17 02:32:40 -0500 |
|---|---|---|
| committer | Moyster <oysterized@gmail.com> | 2018-05-16 15:14:03 +0200 |
| commit | 263131764ee5ed41a288e045f71c5505db1d281f (patch) | |
| tree | 9291c957744762401539deb96ca6fb54f681b2ed | |
| parent | d3d7ba5ba1644aff4990fb0e9fb965d514976017 (diff) | |
ANDROID: usb: gadget: function: Fix commenting style
Fix checkpatch.pl warning:
Block comments use * on subsequent lines
Change-Id: I9c92f128fdb3aeeb6ab9c7039e11f857bebb9539
Signed-off-by: Anson Jacob <ansonjacob.aj@gmail.com>
| -rw-r--r-- | drivers/usb/gadget/f_accessory.c | 15 |
1 files changed, 8 insertions, 7 deletions
diff --git a/drivers/usb/gadget/f_accessory.c b/drivers/usb/gadget/f_accessory.c index 148a3a25d..ea46b69ba 100644 --- a/drivers/usb/gadget/f_accessory.c +++ b/drivers/usb/gadget/f_accessory.c @@ -667,9 +667,10 @@ static ssize_t acc_write(struct file *fp, const char __user *buf, req->zero = 0; } else { xfer = count; - /* If the data length is a multple of the + /* + * If the data length is a multple of the * maxpacket size then send a zero length packet(ZLP). - */ + */ req->zero = ((xfer % dev->ep_in->maxpacket) == 0); } if (copy_from_user(req->buf, buf, xfer)) { @@ -815,11 +816,11 @@ static int acc_ctrlrequest(struct usb_composite_dev *cdev, unsigned long flags; /* - printk(KERN_INFO "acc_ctrlrequest " - "%02x.%02x v%04x i%04x l%u\n", - b_requestType, b_request, - w_value, w_index, w_length); -*/ + * printk(KERN_INFO "acc_ctrlrequest " + * "%02x.%02x v%04x i%04x l%u\n", + * b_requestType, b_request, + * w_value, w_index, w_length); + */ if (b_requestType == (USB_DIR_OUT | USB_TYPE_VENDOR)) { if (b_request == ACCESSORY_START) { |
