From 90c000f41f49a29b22fb2cc72a224b784d4309ea Mon Sep 17 00:00:00 2001 From: Ilkka Koskinen Date: Wed, 28 Sep 2011 10:50:35 +1000 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 e67dceab552b..72a1f9266803 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