mirror of
https://github.com/Fishwaldo/u-boot.git
synced 2025-03-28 01:51:33 +00:00
i2c: stm32f7: cosmetic: clean the driver
Solve alignments issues in the driver to avoid checkpatch error. Signed-off-by: Patrick Delaunay <patrick.delaunay@st.com>
This commit is contained in:
parent
763c9c83bb
commit
c0765f47d8
1 changed files with 16 additions and 15 deletions
|
@ -58,7 +58,7 @@ struct stm32_i2c_regs {
|
|||
#define STM32_I2C_CR2_ADD10 BIT(11)
|
||||
#define STM32_I2C_CR2_RD_WRN BIT(10)
|
||||
#define STM32_I2C_CR2_SADD10_MASK GENMASK(9, 0)
|
||||
#define STM32_I2C_CR2_SADD10(n) ((n & STM32_I2C_CR2_SADD10_MASK))
|
||||
#define STM32_I2C_CR2_SADD10(n) (n & STM32_I2C_CR2_SADD10_MASK)
|
||||
#define STM32_I2C_CR2_SADD7_MASK GENMASK(7, 1)
|
||||
#define STM32_I2C_CR2_SADD7(n) ((n & 0x7f) << 1)
|
||||
#define STM32_I2C_CR2_RESET_MASK (STM32_I2C_CR2_HEAD10R \
|
||||
|
@ -594,6 +594,7 @@ static int stm32_i2c_choose_solution(struct stm32_i2c_setup *setup,
|
|||
|
||||
for (l = 0; l < STM32_SCLL_MAX; l++) {
|
||||
u32 tscl_l = (l + 1) * prescaler + tsync;
|
||||
|
||||
if ((tscl_l < i2c_specs[setup->speed].l_min) ||
|
||||
(i2cclk >=
|
||||
((tscl_l - af_delay_min - dnf_delay) / 4))) {
|
||||
|
|
Loading…
Add table
Reference in a new issue