]> 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, 5 Oct 2011 00:43:23 +0000 (11:43 +1100)
committerStephen Rothwell <sfr@canb.auug.org.au>
Tue, 11 Oct 2011 08:43:59 +0000 (19:43 +1100)
Signed-off-by: Ilkka Koskinen <ilkka.koskinen@nokia.com>
Signed-off-by: Éric Piel <eric.piel@tremplin-utc.net>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
drivers/misc/lis3lv02d/lis3lv02d.c

index fca1f8e223f6d99cdb8fd359a92a890c789c85bf..29d12a70eb1bcbb2ccb08ab76f907057ee368021 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)];