drivers: i2c: nordic: cosmetics
Adjust whitespace. Signed-off-by: Martí Bolívar <marti.bolivar@nordicsemi.no>
This commit is contained in:
parent
4508b6fc01
commit
df8be2d2e0
2 changed files with 3 additions and 3 deletions
|
@ -244,7 +244,7 @@ static int twi_nrfx_pm_control(struct device *dev, u32_t ctrl_command,
|
|||
: I2C_NRFX_TWI_INVALID_FREQUENCY)
|
||||
|
||||
#define I2C_NRFX_TWI_DEVICE(idx) \
|
||||
BUILD_ASSERT( \
|
||||
BUILD_ASSERT( \
|
||||
I2C_NRFX_TWI_FREQUENCY( \
|
||||
DT_NORDIC_NRF_TWI_I2C_##idx##_CLOCK_FREQUENCY) \
|
||||
!= I2C_NRFX_TWI_INVALID_FREQUENCY, \
|
||||
|
@ -260,7 +260,7 @@ static int twi_nrfx_pm_control(struct device *dev, u32_t ctrl_command,
|
|||
.transfer_sync = Z_SEM_INITIALIZER( \
|
||||
twi_##idx##_data.transfer_sync, 1, 1), \
|
||||
.completion_sync = Z_SEM_INITIALIZER( \
|
||||
twi_##idx##_data.completion_sync, 0, 1) \
|
||||
twi_##idx##_data.completion_sync, 0, 1) \
|
||||
}; \
|
||||
static const struct i2c_nrfx_twi_config twi_##idx##z_config = { \
|
||||
.twi = NRFX_TWI_INSTANCE(idx), \
|
||||
|
|
|
@ -218,7 +218,7 @@ static int twim_nrfx_pm_control(struct device *dev, u32_t ctrl_command,
|
|||
: I2C_NRFX_TWIM_INVALID_FREQUENCY)
|
||||
|
||||
#define I2C_NRFX_TWIM_DEVICE(idx) \
|
||||
BUILD_ASSERT( \
|
||||
BUILD_ASSERT( \
|
||||
I2C_NRFX_TWIM_FREQUENCY( \
|
||||
DT_NORDIC_NRF_TWIM_I2C_##idx##_CLOCK_FREQUENCY) \
|
||||
!= I2C_NRFX_TWIM_INVALID_FREQUENCY, \
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue