power: supply: ds2760_battery: merge ds2760 supply driver with its w1 slave companion
authorDaniel Mack <daniel@zonque.org>
Fri, 6 Jul 2018 05:35:51 +0000 (07:35 +0200)
committerSebastian Reichel <sre@kernel.org>
Wed, 11 Jul 2018 16:09:09 +0000 (18:09 +0200)
commitbf49735537374c02fd4111bd5463e372f69c41f8
tree380a984714c0cca718040a2e26d128fe5b2b6108
parentfae68031f7fbc8b6db58d87830ba7ed1d696fbb1
power: supply: ds2760_battery: merge ds2760 supply driver with its w1 slave companion

This patch removes the w1 slave driver that used to register the w1 family
and instanciate a platform device at runtime. The code now lives in the
supply driver instead to avoid that level of indirection.

The old device name "ds2760-battery.0" is preserved, so userspace
applications can access the same virtual device nodes as before.

Note that because the w1 core does not currently have a framework for
suspend/resume, the driver now registers a PM notifier callback.

Signed-off-by: Daniel Mack <daniel@zonque.org>
Signed-off-by: Sebastian Reichel <sebastian.reichel@collabora.co.uk>
drivers/power/supply/Kconfig
drivers/power/supply/ds2760_battery.c
drivers/w1/slaves/Kconfig
drivers/w1/slaves/Makefile
drivers/w1/slaves/w1_ds2760.c [deleted file]
drivers/w1/slaves/w1_ds2760.h [deleted file]