commit | 3fc1a004d1425b2cb06419373b76ef69b7fd7cf1 | [log] [tgz] |
---|---|---|
author | Darwin Rambo <drambo@broadcom.com> | Fri Dec 13 12:57:26 2013 -0800 |
committer | Heiko Schocher <hs@denx.de> | Mon Jan 13 08:17:51 2014 +0100 |
tree | 706acdeb741c09d0bf63e989e51d7e8605ab7e7f | |
parent | f234b1e0430b7b39319a72d99031f3b8ac8eeedf [diff] |
i2c: Fix i2c speed command This corrects i2c core to interpret the value returned by i2c_set_bus_speed as a success indicator rather than the actual speed that was set. When i2c_set_bus_speed returns a failure code, the speed is unknown so the adapter speed is set to zero. Signed-off-by: Darwin Rambo <drambo@broadcom.com> Reviewed-by: Tim Kryger <tim.kryger@linaro.org> Reviewed-by: Steve Rae <srae@broadcom.com> Acked-by: Jagannadha Sutradharudu Teki <jagannadh.teki@gmail.com>