[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <20180628115246.6qqa3nwxwx2qpls6@earth.universe>
Date: Thu, 28 Jun 2018 13:52:46 +0200
From: Sebastian Reichel <sebastian.reichel@...labora.co.uk>
To: Daniel Mack <daniel@...que.org>
Cc: zbr@...emap.net, robh+dt@...nel.org, mark.rutland@....com,
szabolcs.gyurko@....hu, devicetree@...r.kernel.org,
linux-kernel@...r.kernel.org, linux-pm@...r.kernel.org,
robert.jarzmik@...e.fr
Subject: Re: [PATCH v2 4/4] power: ds2760_battery: add device tree glue
Hi,
On Thu, Jun 28, 2018 at 09:55:40AM +0200, Daniel Mack wrote:
> The w1 slave device used by this driver now has a of_node in case it
> was matched against a devicetree sub-node of the bus master. This can
> now be passed down to the power supply core which will parse more
> properties from the node, such as 'power-supplies'.
>
> Signed-off-by: Daniel Mack <daniel@...que.org>
> ---
Thanks for the patch series. Having proper DT support is a nice
addition. But instead of extending the platform device hack, please
merge the w1 driver into ds2760_battery.c as it happened to the
bq27000 driver already. The intermediate platform device is completly
useless and only makes things more complicated.
Basically move all code from w1_ds2760.c into ds2760_battery.c,
drop some EXPORT_SYMBOL and make functions static instead. Then
move content from probe/remove function into add_slave/remove_slave
callbacks and drop all platform device things.
-- Sebastian
Download attachment "signature.asc" of type "application/pgp-signature" (834 bytes)
Powered by blists - more mailing lists