mirror of
https://github.com/hardkernel/linux.git
synced 2026-06-08 20:07:46 +09:00
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>
This commit is contained in:
@@ -676,9 +676,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)) {
|
||||
@@ -820,11 +821,11 @@ 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) {
|
||||
|
||||
Reference in New Issue
Block a user