From: Matthew Garrett Date: Sat, 20 Sep 2014 11:19:45 +0000 (+0200) Subject: ACPI / SBS: Don't assume the existence of an SBS charger X-Git-Tag: fixes-against-v3.18-rc2~138^2~13^2~3 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=3031cddea633ea5328162d3d712a582e4205dbed;p=pandora-kernel.git ACPI / SBS: Don't assume the existence of an SBS charger Apple hardware continues to expose an ACPI AC charger even when using SBS to report battery state. The charger status byte returns all 0s in this case. Since the spec requires that bit 4 be 1 at all times, assume that there's not really a charger if it's set to zero. Signed-off-by: Matthew Garrett Signed-off-by: Andreas Noever Signed-off-by: Rafael J. Wysocki --- Reading git-diff-tree failed