|
@@ -631,7 +631,7 @@ static struct miscdevice lis3lv02d_misc_device = {
|
|
|
.fops = &lis3lv02d_misc_fops,
|
|
|
};
|
|
|
|
|
|
-int lis3lv02d_joystick_enable(void)
|
|
|
+int lis3lv02d_joystick_enable(struct lis3lv02d *lis3)
|
|
|
{
|
|
|
struct input_dev *input_dev;
|
|
|
int err;
|
|
@@ -689,7 +689,7 @@ int lis3lv02d_joystick_enable(void)
|
|
|
}
|
|
|
EXPORT_SYMBOL_GPL(lis3lv02d_joystick_enable);
|
|
|
|
|
|
-void lis3lv02d_joystick_disable(void)
|
|
|
+void lis3lv02d_joystick_disable(struct lis3lv02d *lis3)
|
|
|
{
|
|
|
if (lis3_dev.irq)
|
|
|
free_irq(lis3_dev.irq, &lis3_dev);
|
|
@@ -959,7 +959,7 @@ int lis3lv02d_init_device(struct lis3lv02d *lis3)
|
|
|
pm_runtime_enable(lis3->pm_dev);
|
|
|
}
|
|
|
|
|
|
- if (lis3lv02d_joystick_enable())
|
|
|
+ if (lis3lv02d_joystick_enable(lis3))
|
|
|
pr_err("joystick initialization failed\n");
|
|
|
|
|
|
/* passing in platform specific data is purely optional and only
|