Changeset d1582b50 in mainline for uspace/drv/bus/usb/ehci/ehci_rh.c


Ignore:
Timestamp:
2020-12-14T20:41:53Z (3 years ago)
Author:
Jiri Svoboda <jiri@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
02fe42e
Parents:
1382446
git-author:
Jiri Svoboda <jiri@…> (2020-12-14 20:33:54)
git-committer:
Jiri Svoboda <jiri@…> (2020-12-14 20:41:53)
Message:

Fix spacing in single-line comments using latest ccheck

This found incorrectly formatted section comments (with blocks of
asterisks or dashes). I strongly believe against using section comments
but I am not simply removing them since that would probably be
controversial.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/drv/bus/usb/ehci/ehci_rh.c

    r1382446 rd1582b50  
    8686        instance->hub_descriptor.header.max_current = 0;
    8787
    88         /* Device removable and some legacy 1.0 stuff*/
     88        /* Device removable and some legacy 1.0 stuff */
    8989        instance->hub_descriptor.rempow[0] = 0xff;
    9090        instance->hub_descriptor.rempow[1] = 0xff;
     
    410410        /* Enabled features to clear: see page 269 of USB specs */
    411411        switch (feature) {
    412         case USB_HUB_FEATURE_PORT_POWER:          /*8*/
     412        case USB_HUB_FEATURE_PORT_POWER:          /* 8 */
    413413                usb_log_debug2("RH(%p-%u): Clear port power.", hub, port);
    414414                EHCI_CLR(hub->registers->portsc[port],
     
    416416                return EOK;
    417417
    418         case USB2_HUB_FEATURE_PORT_ENABLE:         /*1*/
     418        case USB2_HUB_FEATURE_PORT_ENABLE:         /* 1 */
    419419                usb_log_debug2("RH(%p-%u): Clear port enable.", hub, port);
    420420                EHCI_CLR(hub->registers->portsc[port],
     
    422422                return EOK;
    423423
    424         case USB2_HUB_FEATURE_PORT_SUSPEND:        /*2*/
     424        case USB2_HUB_FEATURE_PORT_SUSPEND:        /* 2 */
    425425                usb_log_debug2("RH(%p-%u): Clear port suspend.", hub, port);
    426426                /* If not in suspend it's noop */
     
    434434                return delayed_job(stop_resume, hub, port);
    435435
    436         case USB_HUB_FEATURE_C_PORT_CONNECTION:   /*16*/
     436        case USB_HUB_FEATURE_C_PORT_CONNECTION:   /* 16 */
    437437                usb_log_debug2("RH(%p-%u): Clear port connection change.",
    438438                    hub, port);
     
    440440                    USB_PORTSC_CONNECT_CH_FLAG);
    441441                return EOK;
    442         case USB2_HUB_FEATURE_C_PORT_ENABLE:       /*17*/
     442        case USB2_HUB_FEATURE_C_PORT_ENABLE:       /* 17 */
    443443                usb_log_debug2("RH(%p-%u): Clear port enable change.",
    444444                    hub, port);
     
    446446                    USB_PORTSC_CONNECT_CH_FLAG);
    447447                return EOK;
    448         case USB_HUB_FEATURE_C_PORT_OVER_CURRENT: /*19*/
     448        case USB_HUB_FEATURE_C_PORT_OVER_CURRENT: /* 19 */
    449449                usb_log_debug2("RH(%p-%u): Clear port OC change.",
    450450                    hub, port);
     
    452452                    USB_PORTSC_OC_CHANGE_FLAG);
    453453                return EOK;
    454         case USB2_HUB_FEATURE_C_PORT_SUSPEND:      /*18*/
     454        case USB2_HUB_FEATURE_C_PORT_SUSPEND:      /* 18 */
    455455                usb_log_debug2("RH(%p-%u): Clear port suspend change.",
    456456                    hub, port);
    457457                hub->resume_flag[port] = false;
    458458                return EOK;
    459         case USB_HUB_FEATURE_C_PORT_RESET:        /*20*/
     459        case USB_HUB_FEATURE_C_PORT_RESET:        /* 20 */
    460460                usb_log_debug2("RH(%p-%u): Clear port reset change.",
    461461                    hub, port);
     
    487487        const unsigned feature = uint16_usb2host(setup_packet->value);
    488488        switch (feature) {
    489         case USB2_HUB_FEATURE_PORT_ENABLE:  /*1*/
     489        case USB2_HUB_FEATURE_PORT_ENABLE:  /* 1 */
    490490                usb_log_debug2("RH(%p-%u): Set port enable.", hub, port);
    491491                EHCI_SET(hub->registers->portsc[port],
    492492                    USB_PORTSC_ENABLED_FLAG);
    493493                return EOK;
    494         case USB2_HUB_FEATURE_PORT_SUSPEND: /*2*/
     494        case USB2_HUB_FEATURE_PORT_SUSPEND: /* 2 */
    495495                usb_log_debug2("RH(%p-%u): Set port suspend.", hub, port);
    496496                EHCI_SET(hub->registers->portsc[port],
    497497                    USB_PORTSC_SUSPEND_FLAG);
    498498                return EOK;
    499         case USB_HUB_FEATURE_PORT_RESET:   /*4*/
     499        case USB_HUB_FEATURE_PORT_RESET:   /* 4 */
    500500                usb_log_debug2("RH(%p-%u): Set port reset.", hub, port);
    501501                EHCI_SET(hub->registers->portsc[port],
     
    503503                //TODO: What if creating the delayed job fails?
    504504                return delayed_job(stop_reset, hub, port);
    505         case USB_HUB_FEATURE_PORT_POWER:   /*8*/
     505        case USB_HUB_FEATURE_PORT_POWER:   /* 8 */
    506506                usb_log_debug2("RH(%p-%u): Set port power.", hub, port);
    507507                EHCI_SET(hub->registers->portsc[port],
Note: See TracChangeset for help on using the changeset viewer.