[Letux-kernel] [PATCH] bq2429x: compile fix
H. Nikolaus Schaller
hns at goldelico.com
Mon Jun 18 23:04:23 CEST 2018
Thanks,
will apply asap!
BR and GN,
Nikolaus
> Am 18.06.2018 um 23:00 schrieb Andreas Kemnade <andreas at kemnade.info>:
>
> 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
>
> _______________________________________________
> http://projects.goldelico.com/p/gta04-kernel/
> Letux-kernel mailing list
> Letux-kernel at openphoenux.org
> http://lists.goldelico.com/mailman/listinfo.cgi/letux-kernel
More information about the Letux-kernel
mailing list