diff --git a/inc/id_button.hpp b/inc/id_button.hpp
index cc664b2..a5c4180 100644
--- a/inc/id_button.hpp
+++ b/inc/id_button.hpp
@@ -15,22 +15,23 @@
 */
 
 #pragma once
-#include <phosphor-logging/elog-errors.hpp>
-#include <unistd.h>
-#include "xyz/openbmc_project/Chassis/Common/error.hpp"
-#include "xyz/openbmc_project/Chassis/Buttons/ID/server.hpp"
 #include "common.hpp"
 #include "gpio.hpp"
+#include "xyz/openbmc_project/Chassis/Buttons/ID/server.hpp"
+#include "xyz/openbmc_project/Chassis/Common/error.hpp"
 
-const static constexpr char *ID_BUTTON = "ID_BTN";
+#include <unistd.h>
+
+#include <phosphor-logging/elog-errors.hpp>
+
+const static constexpr char* ID_BUTTON = "ID_BTN";
 
 struct IDButton
     : sdbusplus::server::object::object<
-        sdbusplus::xyz::openbmc_project::Chassis::Buttons::server::ID>
+          sdbusplus::xyz::openbmc_project::Chassis::Buttons::server::ID>
 {
 
-    IDButton(sdbusplus::bus::bus& bus, const char* path,
-             EventPtr& event,
+    IDButton(sdbusplus::bus::bus& bus, const char* path, EventPtr& event,
              sd_event_io_handler_t handler = IDButton::EventHandler) :
         sdbusplus::server::object::object<
             sdbusplus::xyz::openbmc_project::Chassis::Buttons::server::ID>(
@@ -46,8 +47,8 @@
         {
             phosphor::logging::log<phosphor::logging::level::ERR>(
                 "ID_BUTTON: failed to config GPIO");
-            throw sdbusplus::xyz::openbmc_project::Chassis::Common::
-                Error::IOError();
+            throw sdbusplus::xyz::openbmc_project::Chassis::Common::Error::
+                IOError();
         }
 
         ret = sd_event_add_io(event.get(), nullptr, fd, EPOLLPRI,
@@ -57,8 +58,8 @@
             phosphor::logging::log<phosphor::logging::level::ERR>(
                 "ID_BUTTON: failed to add to event loop");
             ::closeGpio(fd);
-            throw sdbusplus::xyz::openbmc_project::Chassis::Common::
-                Error::IOError();
+            throw sdbusplus::xyz::openbmc_project::Chassis::Common::Error::
+                IOError();
         }
     }
 
@@ -69,8 +70,8 @@
 
     void simPress() override;
 
-    static int EventHandler(sd_event_source* es, int fd,
-                            uint32_t revents, void* userdata)
+    static int EventHandler(sd_event_source* es, int fd, uint32_t revents,
+                            void* userdata)
     {
 
         int n = -1;
@@ -80,8 +81,8 @@
         {
             phosphor::logging::log<phosphor::logging::level::ERR>(
                 "ID_BUTTON: userdata null!");
-            throw sdbusplus::xyz::openbmc_project::Chassis::Common::
-                Error::IOError();
+            throw sdbusplus::xyz::openbmc_project::Chassis::Common::Error::
+                IOError();
         }
 
         IDButton* idButton = static_cast<IDButton*>(userdata);
@@ -90,8 +91,8 @@
         {
             phosphor::logging::log<phosphor::logging::level::ERR>(
                 "ID_BUTTON: null pointer!");
-            throw sdbusplus::xyz::openbmc_project::Chassis::Common::
-                Error::IOError();
+            throw sdbusplus::xyz::openbmc_project::Chassis::Common::Error::
+                IOError();
         }
 
         n = ::lseek(fd, 0, SEEK_SET);
@@ -100,8 +101,8 @@
         {
             phosphor::logging::log<phosphor::logging::level::ERR>(
                 "ID_BUTTON: lseek error!");
-            throw sdbusplus::xyz::openbmc_project::Chassis::Common::
-                Error::IOError();
+            throw sdbusplus::xyz::openbmc_project::Chassis::Common::Error::
+                IOError();
         }
 
         n = ::read(fd, &buf, sizeof(buf));
@@ -109,8 +110,8 @@
         {
             phosphor::logging::log<phosphor::logging::level::ERR>(
                 "ID_BUTTON: read error!");
-            throw sdbusplus::xyz::openbmc_project::Chassis::Common::
-                Error::IOError();
+            throw sdbusplus::xyz::openbmc_project::Chassis::Common::Error::
+                IOError();
         }
 
         if (buf == '0')
