diff options
author | Simon Glass <sjg@chromium.org> | 2020-01-23 21:48:06 +0300 |
---|---|---|
committer | Heiko Schocher <hs@denx.de> | 2020-01-27 09:18:46 +0300 |
commit | afb88651a689aa0aed67c4cf439f1dc0d8803d5a (patch) | |
tree | 8772d96cd41788d4484f283fa976d4b47b723adf /drivers/i2c/designware_i2c.h | |
parent | 25eb0fb667dc64cb819905deccccbb36908e5bd6 (diff) | |
download | u-boot-afb88651a689aa0aed67c4cf439f1dc0d8803d5a.tar.xz |
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 <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>
Diffstat (limited to 'drivers/i2c/designware_i2c.h')
-rw-r--r-- | drivers/i2c/designware_i2c.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/i2c/designware_i2c.h b/drivers/i2c/designware_i2c.h index 10fb7d7d3e..aade5c2da0 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 <clk.h> #include <reset.h> struct i2c_regs { |