diff options
| author | Simon Glass <[email protected]> | 2020-01-23 11:48:06 -0700 |
|---|---|---|
| committer | Heiko Schocher <[email protected]> | 2020-01-27 07:18:46 +0100 |
| commit | afb88651a689aa0aed67c4cf439f1dc0d8803d5a (patch) | |
| tree | 8772d96cd41788d4484f283fa976d4b47b723adf /drivers | |
| parent | 25eb0fb667dc64cb819905deccccbb36908e5bd6 (diff) | |
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 <[email protected]>
Reviewed-by: Ley Foon Tan <[email protected]>
Reviewed-by: Jun Chen <[email protected]>
Reviewed-by: Heiko Schocher <[email protected]>
Diffstat (limited to 'drivers')
| -rw-r--r-- | drivers/i2c/designware_i2c.c | 2 | ||||
| -rw-r--r-- | drivers/i2c/designware_i2c.h | 1 |
2 files changed, 2 insertions, 1 deletions
diff --git a/drivers/i2c/designware_i2c.c b/drivers/i2c/designware_i2c.c index b8cdd1c6613..138fc725612 100644 --- a/drivers/i2c/designware_i2c.c +++ b/drivers/i2c/designware_i2c.c @@ -4,8 +4,8 @@ * Vipin Kumar, ST Micoelectronics, [email protected]. */ -#include <clk.h> #include <common.h> +#include <clk.h> #include <dm.h> #include <i2c.h> #include <pci.h> diff --git a/drivers/i2c/designware_i2c.h b/drivers/i2c/designware_i2c.h index 10fb7d7d3eb..aade5c2da0b 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 { |
