Hi, On Mon, Aug 08, 2022 at 12:38:08PM -0500, Chris Morgan wrote: > From: Chris Morgan <macromorgan@xxxxxxxxxxx> > > Add support for the Rockchip rk817 battery charger integrated into the > rk817 PMIC. > > Signed-off-by: Chris Morgan <macromorgan@xxxxxxxxxxx> > Signed-off-by: Maya Matuszczyk <maccraft123mc@xxxxxxxxx> > --- Looks mostly good. Just three things: > [...] > --- /dev/null > +++ b/drivers/power/supply/rk817_charger.c > @@ -0,0 +1,1151 @@ > +// SPDX-License-Identifier: GPL-2.0-only > +/* > + * Charger Driver for Rockchip rk817 > + * > + * Copyright (c) 2021 The Copyright line is incomplete. > + * > + * Authors: Maya Matuszczyk <maccraft123mc@xxxxxxxxx> > + * Chris Morgan <macromorgan@xxxxxxxxxxx> > + */ > + > +#include <linux/mfd/rk808.h> > +#include <linux/irq.h> > +#include <linux/of_gpio.h> > [...] Why are you including of_gpio.h? You are not using any. > + INIT_DELAYED_WORK(&charger->work, rk817_charging_monitor); > + /* Get and populate the first set of values. */ > + schedule_delayed_work(&charger->work, 0); > [...] what happens with the delayed work when you remove the driver? Check for devm_delayed_work_autocancel(). -- Sebastian
Attachment:
signature.asc
Description: PGP signature