[Letux-kernel] [PATCH] bq2429x: compile fix
Andreas Kemnade
andreas at kemnade.info
Mon Jun 18 23:00:03 CEST 2018
fix incompatible suspend / resume functions
Signed-off-by: Andreas Kemnade <andreas at kemnade.info>
---
drivers/power/supply/bq2429x_charger.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/drivers/power/supply/bq2429x_charger.c b/drivers/power/supply/bq2429x_charger.c
index 8a47fdf7059e..e61f3465df7d 100755
--- a/drivers/power/supply/bq2429x_charger.c
+++ b/drivers/power/supply/bq2429x_charger.c
@@ -1119,14 +1119,14 @@ static struct of_device_id bq24296_charger_of_match[] = {
MODULE_DEVICE_TABLE(of, bq24296_charger_of_match);
#endif
-static int bq24296_charger_suspend(struct i2c_client *client, pm_message_t mesg)
+static int bq24296_charger_suspend(struct device *device, pm_message_t state)
{
// turn off otg?
cancel_delayed_work_sync(&bq24296_di->usb_detect_work);
return 0;
}
-static int bq24296_charger_resume(struct i2c_client *client)
+static int bq24296_charger_resume(struct device *device)
{
schedule_delayed_work(&bq24296_di->usb_detect_work, msecs_to_jiffies(50));
return 0;
--
2.11.0
More information about the Letux-kernel
mailing list