From: Simon Glass Date: Thu, 23 Jan 2020 18:48:06 +0000 (-0700) Subject: i2c: designware_i2c: Include clk.h in the header file X-Git-Tag: v2020.10~390^2~20 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=afb88651a689aa0aed67c4cf439f1dc0d8803d5a;p=platform%2Fkernel%2Fu-boot.git i2c: designware_i2c: Include clk.h in the header file 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 Reviewed-by: Ley Foon Tan Reviewed-by: Jun Chen Reviewed-by: Heiko Schocher --- diff --git a/drivers/i2c/designware_i2c.c b/drivers/i2c/designware_i2c.c index b8cdd1c..138fc72 100644 --- a/drivers/i2c/designware_i2c.c +++ b/drivers/i2c/designware_i2c.c @@ -4,8 +4,8 @@ * Vipin Kumar, ST Micoelectronics, vipin.kumar@st.com. */ -#include #include +#include #include #include #include diff --git a/drivers/i2c/designware_i2c.h b/drivers/i2c/designware_i2c.h index 10fb7d7..aade5c2 100644 --- a/drivers/i2c/designware_i2c.h +++ b/drivers/i2c/designware_i2c.h @@ -7,6 +7,7 @@ #ifndef __DW_I2C_H_ #define __DW_I2C_H_ +#include #include struct i2c_regs {