Fix the following checkpatch warning at lines 45, 467, 547, 646, 696, 782, 897: WARNING:BLOCK_COMMENT_STYLE: Block comments use a trailing */ on a separate line Signed-off-by: Robert Greener <rob@xxxxxxxxxxxxxx> --- drivers/usb/core/config.c | 21 ++++++++++++++------- 1 file changed, 14 insertions(+), 7 deletions(-) diff --git a/drivers/usb/core/config.c b/drivers/usb/core/config.c index 52b0edee5b55..52aab1462787 100644 --- a/drivers/usb/core/config.c +++ b/drivers/usb/core/config.c @@ -42,7 +42,8 @@ static int find_next_descriptor(unsigned char *buffer, int size, } /* Store the number of descriptors skipped and return the - * number of bytes skipped */ + * number of bytes skipped + */ if (num_skipped) *num_skipped = n; return buffer - buffer0; @@ -464,7 +465,8 @@ static int usb_parse_endpoint(struct device *ddev, int cfgno, inum, asnum, endpoint, buffer, size); /* Skip over any Class Specific or Vendor Specific descriptors; - * find the next endpoint or interface descriptor */ + * find the next endpoint or interface descriptor + */ endpoint->extra = buffer; i = find_next_descriptor(buffer, size, USB_DT_ENDPOINT, USB_DT_INTERFACE, &n); @@ -544,7 +546,8 @@ static int usb_parse_interface(struct device *ddev, int cfgno, memcpy(&alt->desc, d, USB_DT_INTERFACE_SIZE); /* Skip over any Class Specific or Vendor Specific descriptors; - * find the first endpoint or interface descriptor */ + * find the first endpoint or interface descriptor + */ alt->extra = buffer; i = find_next_descriptor(buffer, size, USB_DT_ENDPOINT, USB_DT_INTERFACE, &n); @@ -643,7 +646,8 @@ static int usb_parse_configuration(struct usb_device *dev, int cfgidx, } /* Go through the descriptors, checking their length and counting the - * number of altsettings for each interface */ + * number of altsettings for each interface + */ n = 0; for ((buffer2 = buffer, size2 = size); size2 > 0; @@ -693,7 +697,8 @@ static int usb_parse_configuration(struct usb_device *dev, int cfgidx, cfgno, inum, nintf_orig - 1); /* Have we already encountered this interface? - * Count its altsettings */ + * Count its altsettings + */ for (i = 0; i < n; ++i) { if (inums[i] == inum) break; @@ -779,7 +784,8 @@ static int usb_parse_configuration(struct usb_device *dev, int cfgidx, /* FIXME: parse the BOS descriptor */ /* Skip over any Class Specific or Vendor Specific descriptors; - * find the first interface descriptor */ + * find the first interface descriptor + */ config->extra = buffer; i = find_next_descriptor(buffer, size, USB_DT_INTERFACE, USB_DT_INTERFACE, &n); @@ -894,7 +900,8 @@ int usb_get_configuration(struct usb_device *dev) for (cfgno = 0; cfgno < ncfg; cfgno++) { /* We grab just the first descriptor so we know how long - * the whole configuration is */ + * the whole configuration is + */ result = usb_get_descriptor(dev, USB_DT_CONFIG, cfgno, desc, USB_DT_CONFIG_SIZE); if (result < 0) { -- 2.32.0