diff options
author | Yidi Lin <yidilin@chromium.org> | 2022-08-10 14:59:18 +0800 |
---|---|---|
committer | Martin Roth <martin.roth@amd.corp-partner.google.com> | 2022-08-12 17:17:53 +0000 |
commit | 5ef258b3f6a6481d20f1fca0f60db894b80649ab (patch) | |
tree | 8fc99f95a5c066384e15bd464f04a327b3d10bb7 /payloads/libpayload/drivers/usb/usbhub.c | |
parent | ad6b27e9efa84d121b1d55db44fd35a8a52635cc (diff) |
libpayload: usb: Fix spacing issues
Found by:
find payloads/libpayload/drivers/usb -type f -name "*.[ch]" | xargs \
util/lint/checkpatch.pl --types SPACING -q --fix-inplace -f
Change-Id: Id23e2e573e475c6d795812a4b2df9aeffbcaaaf4
Signed-off-by: Yidi Lin <yidilin@chromium.org>
Reviewed-on: https://review.coreboot.org/c/coreboot/+/66596
Reviewed-by: Yu-Ping Wu <yupingso@google.com>
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Diffstat (limited to 'payloads/libpayload/drivers/usb/usbhub.c')
-rw-r--r-- | payloads/libpayload/drivers/usb/usbhub.c | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/payloads/libpayload/drivers/usb/usbhub.c b/payloads/libpayload/drivers/usb/usbhub.c index 299ebf4737..b14f979e17 100644 --- a/payloads/libpayload/drivers/usb/usbhub.c +++ b/payloads/libpayload/drivers/usb/usbhub.c @@ -72,11 +72,11 @@ static int usb_hub_port_status_changed(usbdev_t *const dev, const int port) { unsigned short buf[2]; - int ret = get_status (dev, port, DR_PORT, sizeof(buf), buf); + int ret = get_status(dev, port, DR_PORT, sizeof(buf), buf); if (ret >= 0) { ret = buf[1] & PORT_CONNECTION; if (ret) - clear_feature (dev, port, SEL_C_PORT_CONNECTION, + clear_feature(dev, port, SEL_C_PORT_CONNECTION, DR_PORT); } return ret; @@ -86,7 +86,7 @@ static int usb_hub_port_connected(usbdev_t *const dev, const int port) { unsigned short buf[2]; - int ret = get_status (dev, port, DR_PORT, sizeof(buf), buf); + int ret = get_status(dev, port, DR_PORT, sizeof(buf), buf); if (ret >= 0) ret = buf[0] & PORT_CONNECTION; return ret; @@ -96,7 +96,7 @@ static int usb_hub_port_in_reset(usbdev_t *const dev, const int port) { unsigned short buf[2]; - int ret = get_status (dev, port, DR_PORT, sizeof(buf), buf); + int ret = get_status(dev, port, DR_PORT, sizeof(buf), buf); if (ret >= 0) ret = buf[0] & PORT_RESET; return ret; @@ -106,7 +106,7 @@ static int usb_hub_port_enabled(usbdev_t *const dev, const int port) { unsigned short buf[2]; - int ret = get_status (dev, port, DR_PORT, sizeof(buf), buf); + int ret = get_status(dev, port, DR_PORT, sizeof(buf), buf); if (ret >= 0) ret = buf[0] & PORT_ENABLE; return ret; @@ -116,7 +116,7 @@ static usb_speed usb_hub_port_speed(usbdev_t *const dev, const int port) { unsigned short buf[2]; - int ret = get_status (dev, port, DR_PORT, sizeof(buf), buf); + int ret = get_status(dev, port, DR_PORT, sizeof(buf), buf); if (ret >= 0 && (buf[0] & PORT_ENABLE)) { /* SuperSpeed hubs can only have SuperSpeed devices. */ if (is_usb_speed_ss(dev->speed)) @@ -144,7 +144,7 @@ usb_hub_enable_port(usbdev_t *const dev, const int port) static int usb_hub_start_port_reset(usbdev_t *const dev, const int port) { - return set_feature (dev, port, SEL_PORT_RESET, DR_PORT); + return set_feature(dev, port, SEL_PORT_RESET, DR_PORT); } static void usb_hub_set_hub_depth(usbdev_t *const dev) |