]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit5b3ade99104d11f9c291ca7937d0b9f4d6d51d08
tree0361dd1885ed228dea03dd376d8ff2c9c7dcfd9a
parent37f8052122ea8f96a63024242b1537f6e6d29e5d
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