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/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
+}