clang-format: copy latest and re-format
clang-format-16 has some backwards incompatible changes that require
additional settings for best compatibility and re-running the formatter.
Copy the latest .clang-format from the docs repository and reformat the
repository.
Change-Id: Iad285e60cad29e025a02d0c0cabcb76fe593b5cf
Signed-off-by: Patrick Williams <patrick@stwcx.xyz>
diff --git a/src/debugHostSelector_button.cpp b/src/debugHostSelector_button.cpp
index 6f078f2..d4de9c2 100644
--- a/src/debugHostSelector_button.cpp
+++ b/src/debugHostSelector_button.cpp
@@ -63,4 +63,4 @@
// emit released signal
released();
}
-}
\ No newline at end of file
+}
diff --git a/src/hostSelector_switch.cpp b/src/hostSelector_switch.cpp
index efbccd2..ce168d0 100644
--- a/src/hostSelector_switch.cpp
+++ b/src/hostSelector_switch.cpp
@@ -60,8 +60,8 @@
throw sdbusplus::xyz::openbmc_project::Chassis::Common::Error::
IOError();
}
- GpioState gpioState =
- (buf == '0') ? (GpioState::deassert) : (GpioState::assert);
+ GpioState gpioState = (buf == '0') ? (GpioState::deassert)
+ : (GpioState::assert);
setHostSelectorValue(config.gpios[index].fd, gpioState);
size_t hsPosMapped = getMappedHSConfig(hostSelectorPosition);
if (hsPosMapped != INVALID_INDEX)
@@ -120,8 +120,8 @@
}
// read the gpio state for the io event received
- GpioState gpioState =
- (buf == '0') ? (GpioState::deassert) : (GpioState::assert);
+ GpioState gpioState = (buf == '0') ? (GpioState::deassert)
+ : (GpioState::assert);
setHostSelectorValue(fd, gpioState);
@@ -131,4 +131,4 @@
{
position(hsPosMapped);
}
-}
\ No newline at end of file
+}
diff --git a/src/serial_uart_mux.cpp b/src/serial_uart_mux.cpp
index 00724dd..31c2051 100644
--- a/src/serial_uart_mux.cpp
+++ b/src/serial_uart_mux.cpp
@@ -41,8 +41,8 @@
// check the debug card present pin
bool SerialUartMux::isOCPDebugCardPresent()
{
- auto gpioState =
- getGpioState(debugCardPresentGpio.fd, debugCardPresentGpio.polarity);
+ auto gpioState = getGpioState(debugCardPresentGpio.fd,
+ debugCardPresentGpio.polarity);
return (gpioState == GpioState::assert);
}
// set the serial uart MUX to select the console w.r.t host selector position
@@ -66,8 +66,8 @@
if (gpioConfig.name == SERIAL_UART_RX_GPIO)
{
- gpioState =
- debugCardPresent ? GpioState::assert : GpioState::deassert;
+ gpioState = debugCardPresent ? GpioState::assert
+ : GpioState::deassert;
}
else
{