diff options
author | Heiko Schocher <hs@denx.de> | 2013-10-04 07:36:34 +0200 |
---|---|---|
committer | Heiko Schocher <hs@denx.de> | 2013-10-17 07:20:25 +0200 |
commit | 13c2433ccb4d9a5efb95ad953c2b3a0eb1909988 (patch) | |
tree | 07ae7a7a85312a50dc132a40a1e54ddf98652350 /drivers/i2c/sh_i2c.c | |
parent | 1086bfa9f49127e40a92b1225af1ed5e41f8fa1c (diff) | |
download | u-boot-imx-13c2433ccb4d9a5efb95ad953c2b3a0eb1909988.zip u-boot-imx-13c2433ccb4d9a5efb95ad953c2b3a0eb1909988.tar.gz u-boot-imx-13c2433ccb4d9a5efb95ad953c2b3a0eb1909988.tar.bz2 |
i2c, core: optimze i2c_set_bus_num()
check first, if we are on the bus, we want to enable. If so,
return immediately, do not calc max adapter number, nor check
other things.
Signed-off-by: Heiko Schocher <hs@denx.de>
Cc: Lukasz Majewski <l.majewski@samsung.com>
Acked-by: Lukasz Majewski <l.majewski@samsung.com>
Diffstat (limited to 'drivers/i2c/sh_i2c.c')
0 files changed, 0 insertions, 0 deletions