diff options
author | Simon Glass <sjg@chromium.org> | 2020-01-23 21:48:22 +0300 |
---|---|---|
committer | Heiko Schocher <hs@denx.de> | 2020-01-27 09:24:02 +0300 |
commit | f3d461521a8ef6540dbcb2314802eae5790a9408 (patch) | |
tree | ce6d8f74e77beb84779c63718de19065f7d1a25d /drivers/i2c/rcar_iic.c | |
parent | b0a22d0fa9507baa8b3782b392471df94974d831 (diff) | |
download | u-boot-f3d461521a8ef6540dbcb2314802eae5790a9408.tar.xz |
i2c: Update drivers to use enum for speed
Convert the obvious uses of i2c bus speeds to use the enum.
Use livetree access for code changes.
Signed-off-by: Simon Glass <sjg@chromium.org>
Reviewed-by: Heiko Schocher <hs@denx.de>
Diffstat (limited to 'drivers/i2c/rcar_iic.c')
-rw-r--r-- | drivers/i2c/rcar_iic.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/i2c/rcar_iic.c b/drivers/i2c/rcar_iic.c index 9d45f547d1..2a82eb0b76 100644 --- a/drivers/i2c/rcar_iic.c +++ b/drivers/i2c/rcar_iic.c @@ -248,7 +248,7 @@ static int rcar_iic_probe(struct udevice *dev) rcar_iic_finish(dev); - return rcar_iic_set_speed(dev, 100000); + return rcar_iic_set_speed(dev, I2C_SPEED_STANDARD_RATE); } static const struct dm_i2c_ops rcar_iic_ops = { |