[fru-device] remove dependency on i2c-dev-user
This package was deleted in the i2c-tools project, stop
using it. Also update header order to new clang-format
Tested-by: Verified still builds in and out of tree
Change-Id: Ic72ff7d67e717bdf4e12b53e2f52b582fabe7404
Signed-off-by: James Feist <james.feist@linux.intel.com>
diff --git a/src/FruDevice.cpp b/src/FruDevice.cpp
index 956ca1d..03cfed6 100644
--- a/src/FruDevice.cpp
+++ b/src/FruDevice.cpp
@@ -14,23 +14,28 @@
// limitations under the License.
*/
-#include <Utils.hpp>
-#include <boost/container/flat_map.hpp>
-#include <boost/algorithm/string/predicate.hpp>
-#include <ctime>
-#include <chrono>
-#include <thread>
-#include <sdbusplus/asio/connection.hpp>
-#include <sdbusplus/asio/object_server.hpp>
+#include <errno.h>
#include <fcntl.h>
+#include <sys/inotify.h>
+#include <sys/ioctl.h>
+
+#include <Utils.hpp>
+#include <boost/algorithm/string/predicate.hpp>
+#include <boost/container/flat_map.hpp>
+#include <chrono>
+#include <ctime>
#include <fstream>
#include <future>
-#include <linux/i2c-dev-user.h>
#include <iostream>
-#include <sys/ioctl.h>
#include <regex>
-#include <sys/inotify.h>
-#include <errno.h>
+#include <sdbusplus/asio/connection.hpp>
+#include <sdbusplus/asio/object_server.hpp>
+#include <thread>
+
+extern "C" {
+#include <i2c/smbus.h>
+#include <linux/i2c-dev.h>
+}
namespace fs = std::experimental::filesystem;
static constexpr bool DEBUG = false;