]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit0466c6dbc68ede114e1c4e0a8c3f2efb16d8fdae
treeea85c0e3d40249f2d53ed9381057e777de976fd1
parent1c67f6d4f98cb58239b6210f990470cece90e1c4
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