The driver is passing a struct lis3lv02d ** to the read() operation but
the read() operation wants a struct lis3lv02d * causing compiler warnings
and presumably also runtime problems.

Signed-off-by: Mark Brown <broo...@opensource.wolfsonmicro.com>
Cc: sta...@kernel.org
---
 drivers/misc/lis3lv02d/lis3lv02d.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/drivers/misc/lis3lv02d/lis3lv02d.c 
b/drivers/misc/lis3lv02d/lis3lv02d.c
index e67dcea..72a1f92 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)];
-- 
1.7.5.4

_______________________________________________
stable mailing list
stable@linux.kernel.org
http://linux.kernel.org/mailman/listinfo/stable

Reply via email to