OSDN Git Service

x86/platform/olpc: Use a correct version when making up a battery node
authorLubomir Rintel <lkundrak@v3.sk>
Thu, 18 Apr 2019 14:46:49 +0000 (16:46 +0200)
committerSebastian Reichel <sebastian.reichel@collabora.com>
Thu, 18 Apr 2019 19:51:49 +0000 (21:51 +0200)
commita7a9bacb9a32f9cebe5feda2e33064440f52d61d
treeea85c0e3d40249f2d53ed9381057e777de976fd1
parent47e120d3337b83ac6de2ebc622b3c9b6c1a9f315
x86/platform/olpc: Use a correct version when making up a battery node

The XO-1 and XO-1.5 batteries apparently differ in an ability to report
ambient temperature. We need to use a different compatible string for the
XO-1.5 battery.

Previously olpc_dt_fixup() used the presence of the battery node's
compatible property to decide whether the DT is up to date. Now we need
to look for a particular value in the compatible string, to decide

Signed-off-by: Lubomir Rintel <lkundrak@v3.sk>
Acked-by: Pavel Machek <pavel@ucw.cz>
Acked-by: Thomas Gleixner <tglx@linutronix.de>
Signed-off-by: Sebastian Reichel <sebastian.reichel@collabora.com>
arch/x86/platform/olpc/olpc_dt.c