diff options
author | Heiko Schocher <hs@denx.de> | 2008-10-17 12:15:05 +0200 |
---|---|---|
committer | Wolfgang Denk <wd@denx.de> | 2008-10-18 21:54:04 +0200 |
commit | cac9cf7875c2a01d63422820ed4732a9bdf5ab7b (patch) | |
tree | 9eabfc5547bb8d59ab84bedf28ce04898bd7cedf /include | |
parent | 5f4c3137f4f051787707c548133823f1656eb508 (diff) | |
download | u-boot-imx-cac9cf7875c2a01d63422820ed4732a9bdf5ab7b.zip u-boot-imx-cac9cf7875c2a01d63422820ed4732a9bdf5ab7b.tar.gz u-boot-imx-cac9cf7875c2a01d63422820ed4732a9bdf5ab7b.tar.bz2 |
mgsuvd: fix coding style
Signed-off-by: Heiko Schocher <hs@denx.de>
Diffstat (limited to 'include')
-rw-r--r-- | include/configs/mgsuvd.h | 10 |
1 files changed, 4 insertions, 6 deletions
diff --git a/include/configs/mgsuvd.h b/include/configs/mgsuvd.h index 7a80dad..416e4db 100644 --- a/include/configs/mgsuvd.h +++ b/include/configs/mgsuvd.h @@ -359,18 +359,16 @@ #define I2C_READ i2c_soft_read_pin () #define I2C_SDA(bit) if(bit) { \ *(unsigned short *)(I2C_BASE_DIR) &= ~SDA_CONF; \ - } \ - else { \ + } else { \ *(unsigned char *)(I2C_BASE_PORT) &= ~SDA_BIT; \ *(unsigned short *)(I2C_BASE_DIR) |= SDA_CONF; \ - } + } #define I2C_SCL(bit) if(bit) { \ *(unsigned short *)(I2C_BASE_DIR) &= ~SCL_CONF; \ - } \ - else { \ + } else { \ *(unsigned char *)(I2C_BASE_PORT) &= ~SCL_BIT; \ *(unsigned short *)(I2C_BASE_DIR) |= SCL_CONF; \ - } + } #define I2C_DELAY udelay(50) /* 1/4 I2C clock duration */ #define CONFIG_I2C_MULTI_BUS 1 |