From 5efbb4efe9d6439e06407c4b9227ff1c4c6c2d2c Mon Sep 17 00:00:00 2001 From: Ilkka Koskinen Date: Wed, 5 Oct 2011 11:43:23 +1100 Subject: [PATCH] lis3-remove-the-references-to-the-global-variable-in-core-driver-fix MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit Signed-off-by: Ilkka Koskinen Signed-off-by: Éric Piel Signed-off-by: Andrew Morton --- drivers/misc/lis3lv02d/lis3lv02d.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/misc/lis3lv02d/lis3lv02d.c b/drivers/misc/lis3lv02d/lis3lv02d.c index fca1f8e223f6..29d12a70eb1b 100644 --- a/drivers/misc/lis3lv02d/lis3lv02d.c +++ b/drivers/misc/lis3lv02d/lis3lv02d.c @@ -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)]; -- 2.39.5