diff options
author | Masahiro Yamada <yamada.m@jp.panasonic.com> | 2014-09-18 13:28:06 +0900 |
---|---|---|
committer | Tom Rini <trini@ti.com> | 2014-09-24 18:30:29 -0400 |
commit | c79cba37b3b42cf8fbd71babcd8998867f76fead (patch) | |
tree | 52e446aa0b8c3a623715da84b0fc9bdbd4826c0d /drivers/i2c/ihs_i2c.c | |
parent | 87f13aa00d0279fcc96530404c3a104eb4cb1672 (diff) | |
download | u-boot-imx-c79cba37b3b42cf8fbd71babcd8998867f76fead.zip u-boot-imx-c79cba37b3b42cf8fbd71babcd8998867f76fead.tar.gz u-boot-imx-c79cba37b3b42cf8fbd71babcd8998867f76fead.tar.bz2 |
cosmetic: replace MIN, MAX with min, max
The macro MIN, MAX is defined as the aliase of min, max,
respectively.
Signed-off-by: Masahiro Yamada <yamada.m@jp.panasonic.com>
Diffstat (limited to 'drivers/i2c/ihs_i2c.c')
-rw-r--r-- | drivers/i2c/ihs_i2c.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/i2c/ihs_i2c.c b/drivers/i2c/ihs_i2c.c index fe66ce2..19fbe59 100644 --- a/drivers/i2c/ihs_i2c.c +++ b/drivers/i2c/ihs_i2c.c @@ -84,7 +84,7 @@ static int ihs_i2c_address(uchar chip, uint addr, int alen, bool hold_bus) int shift = (alen-1) * 8; while (alen) { - int transfer = MIN(alen, 2); + int transfer = min(alen, 2); uchar buf[2]; bool is_last = alen <= transfer; @@ -113,7 +113,7 @@ static int ihs_i2c_access(struct i2c_adapter *adap, uchar chip, uint addr, return 1; while (len) { - int transfer = MIN(len, 2); + int transfer = min(len, 2); if (ihs_i2c_transfer(chip, buffer, transfer, read, len <= transfer)) |