Commit 9abd29e7 authored by Wolfram Sang's avatar Wolfram Sang

i2c: rk3x: populate correct variable for sda_falling_time

Signed-off-by: default avatarWolfram Sang <wsa@the-dreams.de>
Reviewed-by: default avatarDouglas Anderson <dianders@chromium.org>
Cc: stable@kernel.org
parent 1ec21837
...@@ -908,7 +908,7 @@ static int rk3x_i2c_probe(struct platform_device *pdev) ...@@ -908,7 +908,7 @@ static int rk3x_i2c_probe(struct platform_device *pdev)
&i2c->scl_fall_ns)) &i2c->scl_fall_ns))
i2c->scl_fall_ns = 300; i2c->scl_fall_ns = 300;
if (of_property_read_u32(pdev->dev.of_node, "i2c-sda-falling-time-ns", if (of_property_read_u32(pdev->dev.of_node, "i2c-sda-falling-time-ns",
&i2c->scl_fall_ns)) &i2c->sda_fall_ns))
i2c->sda_fall_ns = i2c->scl_fall_ns; i2c->sda_fall_ns = i2c->scl_fall_ns;
strlcpy(i2c->adap.name, "rk3x-i2c", sizeof(i2c->adap.name)); strlcpy(i2c->adap.name, "rk3x-i2c", sizeof(i2c->adap.name));
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment