]> git.ipfire.org Git - thirdparty/kernel/stable.git/commitdiff
i2c: rk3x: populate correct variable for sda_falling_time
authorWolfram Sang <wsa@the-dreams.de>
Wed, 25 Nov 2015 15:58:18 +0000 (16:58 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 19 Feb 2016 22:28:29 +0000 (14:28 -0800)
commit 9abd29e7c13de24ce73213a425d9574b35ac0c6a upstream.

Signed-off-by: Wolfram Sang <wsa@the-dreams.de>
Reviewed-by: Douglas Anderson <dianders@chromium.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/i2c/busses/i2c-rk3x.c

index 72e97e306bd925f8421dfa4be3979c1d25667d9c..9c4efd308f10b431d64dc2b7041b8047c85e8151 100644 (file)
@@ -907,7 +907,7 @@ static int rk3x_i2c_probe(struct platform_device *pdev)
                                 &i2c->scl_fall_ns))
                i2c->scl_fall_ns = 300;
        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;
 
        strlcpy(i2c->adap.name, "rk3x-i2c", sizeof(i2c->adap.name));