power: supply: olpc_battery: Avoid using platform_info
authorLubomir Rintel <lkundrak@v3.sk>
Thu, 18 Apr 2019 14:46:53 +0000 (16:46 +0200)
committerSebastian Reichel <sre@kernel.org>
Thu, 18 Apr 2019 19:53:44 +0000 (21:53 +0200)
commit8ecefda22262030651575a047078045866cedb82
tree0361dd1885ed228dea03dd376d8ff2c9c7dcfd9a
parentb0280d05804ae86514f5abca427e360e33fed1bb
power: supply: olpc_battery: Avoid using platform_info

This wouldn't work on the DT-based ARM platform. Let's read the EC version
directly from the EC driver instead.

This removes x86 specific bits that would prevent this driver from being
used with the EC of ARM-based OLPC XO 1.75.

Signed-off-by: Lubomir Rintel <lkundrak@v3.sk>
Acked-by: Pavel Machek <pavel@ucw.cz>
Signed-off-by: Sebastian Reichel <sebastian.reichel@collabora.com>
drivers/power/supply/olpc_battery.c