return 0;
}
}
- pr_err("timeout in %s\n", __func__);
+ acpi_handle_err(handle, "timeout in %s\n", __func__);
return -1;
}
if (val == 0)
return 0;
}
- pr_err("timeout in %s\n", __func__);
+ acpi_handle_err(handle, "timeout in %s\n", __func__);
return -1;
}
error = sparse_keymap_setup(inputdev, ideapad_keymap, NULL);
if (error) {
- pr_err("Unable to setup input device keymap\n");
+ dev_err(&priv->platform_device->dev,
+ "Unable to setup input device keymap\n");
goto err_free_dev;
}
error = input_register_device(inputdev);
if (error) {
- pr_err("Unable to register input device\n");
+ dev_err(&priv->platform_device->dev,
+ "Unable to register input device\n");
goto err_free_dev;
}
ideapad_input_report(priv, 64);
break;
default:
- pr_info("Unknown special button: %lu\n", bit);
+ dev_info(&priv->platform_device->dev,
+ "Unknown special button: %lu\n", bit);
break;
}
}
&ideapad_backlight_ops,
&props);
if (IS_ERR(blightdev)) {
- pr_err("Could not register backlight device\n");
+ dev_err(&priv->platform_device->dev,
+ "Could not register backlight device\n");
return PTR_ERR(blightdev);
}
*/
break;
default:
- pr_info("Unknown event: %lu\n", bit);
+ dev_info(&priv->platform_device->dev,
+ "Unknown event: %lu\n", bit);
}
}
}
#if IS_ENABLED(CONFIG_ACPI_WMI)
static void ideapad_wmi_notify(u32 value, void *context)
{
+ struct ideapad_private *priv = context;
+
switch (value) {
case 128:
- ideapad_input_report(context, value);
+ ideapad_input_report(priv, value);
break;
default:
- pr_info("Unknown WMI event %u\n", value);
+ dev_info(&priv->platform_device->dev,
+ "Unknown WMI event: %u\n", value);
}
}
#endif