]> git.karo-electronics.de Git - karo-tx-linux.git/commitdiff
lis3-remove-the-references-to-the-global-variable-in-core-driver-fix
authorIlkka Koskinen <ilkka.koskinen@nokia.com>
Wed, 28 Sep 2011 00:50:35 +0000 (10:50 +1000)
committerStephen Rothwell <sfr@canb.auug.org.au>
Fri, 30 Sep 2011 04:53:35 +0000 (14:53 +1000)
Signed-off-by: Ilkka Koskinen <ilkka.koskinen@nokia.com>
Signed-off-by: Éric Piel <eric.piel@tremplin-utc.net>
Signed-off-by: Andrew Morton <>
drivers/misc/lis3lv02d/lis3lv02d.c

index e67dceab552b3d11ac7f472ffd939b0cd42d5342..72a1f92668034a467af2b42e396773249eaa3108 100644 (file)
@@ -200,7 +200,7 @@ static int lis3lv02d_get_odr(struct lis3lv02d *lis3)
        u8 ctrl;
        int shift;
 
-       lis3->read(&lis3, CTRL_REG1, &ctrl);
+       lis3->read(lis3, CTRL_REG1, &ctrl);
        ctrl &= lis3->odr_mask;
        shift = ffs(lis3->odr_mask) - 1;
        return lis3->odrs[(ctrl >> shift)];