]> git.dujemihanovic.xyz Git - u-boot.git/commitdiff
i2c: designware_i2c: Include clk.h in the header file
authorSimon Glass <sjg@chromium.org>
Thu, 23 Jan 2020 18:48:06 +0000 (11:48 -0700)
committerHeiko Schocher <hs@denx.de>
Mon, 27 Jan 2020 06:18:46 +0000 (07:18 +0100)
We use struct clk here so really should include this header file to avoid
build errors. Also switch the order of clk.h in the C file to match the
required code style.

Signed-off-by: Simon Glass <sjg@chromium.org>
Reviewed-by: Ley Foon Tan <ley.foon.tan@intel.com>
Reviewed-by: Jun Chen <ptchentw@gmail.com>
Reviewed-by: Heiko Schocher <hs@denx.de>
drivers/i2c/designware_i2c.c
drivers/i2c/designware_i2c.h

index b8cdd1c661334fedd866ec100303f533c2e54042..138fc72561207e51831c8e1c811c210163e8cf3c 100644 (file)
@@ -4,8 +4,8 @@
  * Vipin Kumar, ST Micoelectronics, vipin.kumar@st.com.
  */
 
-#include <clk.h>
 #include <common.h>
+#include <clk.h>
 #include <dm.h>
 #include <i2c.h>
 #include <pci.h>
index 10fb7d7d3eb517ab6f5b36f2f679b7e9e452d690..aade5c2da0b9e75a3deb4ac61f76962ae5b19302 100644 (file)
@@ -7,6 +7,7 @@
 #ifndef __DW_I2C_H_
 #define __DW_I2C_H_
 
+#include <clk.h>
 #include <reset.h>
 
 struct i2c_regs {