diff options
author | Jack Rosenthal <jrosenth@chromium.org> | 2022-07-06 11:45:37 -0600 |
---|---|---|
committer | Chromeos LUCI <chromeos-scoped@luci-project-accounts.iam.gserviceaccount.com> | 2022-07-07 05:48:32 +0000 |
commit | b90de010a6107ac14a5841134480b2996c2fc3db (patch) | |
tree | a7ee029bcf968966e8fac2fa2f6796909fcb4f61 | |
parent | 2a8141fd97c0a03ddb8e70fa0f9b3dc8cb488ae6 (diff) | |
download | chrome-ec-b90de010a6107ac14a5841134480b2996c2fc3db.tar.gz |
util/uut/l_com_port.c: Format with clang-format
BUG=b:236386294
BRANCH=none
TEST=none
Tricium: disable
Change-Id: Ic03096cc17f9ba724863161b1c2296be8d85b8a9
Signed-off-by: Jack Rosenthal <jrosenth@chromium.org>
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/3749524
Reviewed-by: Jeremy Bettis <jbettis@chromium.org>
-rw-r--r-- | util/uut/l_com_port.c | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/util/uut/l_com_port.c b/util/uut/l_com_port.c index 448ffc1ac7..231d47cc04 100644 --- a/util/uut/l_com_port.c +++ b/util/uut/l_com_port.c @@ -177,9 +177,10 @@ bool com_config_uart(int h_dev_drv, struct comport_fields com_port_fields) tty.c_cc[VMIN] = 0; /* read doesn't block */ tty.c_cc[VTIME] = 5; /* 0.5 seconds read timeout */ - tty.c_iflag |= (com_port_fields.flow_control == 0x01) ? (IXON | IXOFF) : - 0x00; /* xon/xoff - ctrl */ + tty.c_iflag |= (com_port_fields.flow_control == 0x01) ? + (IXON | IXOFF) : + 0x00; /* xon/xoff + ctrl */ tty.c_cflag |= (CLOCAL | CREAD); /* ignore modem controls */ /* enable reading */ |