summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorLijian Zhao <lijian.zhao@intel.com>2018-02-08 12:57:01 -0800
committerFurquan Shaikh <furquan@google.com>2018-02-09 23:17:00 +0000
commit2db6fbc47b1070a40f5c9b00f6ac9957ca8a4199 (patch)
tree30534ab799654caac8ce95e29490b19434e07314 /src
parent6ee716e863117246d453e573d1a128da28b62cb7 (diff)
chromeec: Fix ACPI compile warning
For system without secondary battery, current DSDT will report warning during build time. Add a conditional check to make sure only battery index 0 can return success. TEST=Build pass. Change-Id: Iae12c5d1aa749948ef4025c8b5e60c97e1b747a5 Signed-off-by: Lijian Zhao <lijian.zhao@intel.com> Reviewed-on: https://review.coreboot.org/23661 Reviewed-by: Furquan Shaikh <furquan@google.com> Tested-by: build bot (Jenkins) <no-reply@coreboot.org> Reviewed-by: Nicolas Boichat <drinkcat@chromium.org> Reviewed-by: Aaron Durbin <adurbin@chromium.org>
Diffstat (limited to 'src')
-rw-r--r--src/ec/google/chromeec/acpi/battery.asl4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/ec/google/chromeec/acpi/battery.asl b/src/ec/google/chromeec/acpi/battery.asl
index 18b612db2a..d8056b03b2 100644
--- a/src/ec/google/chromeec/acpi/battery.asl
+++ b/src/ec/google/chromeec/acpi/battery.asl
@@ -42,6 +42,10 @@ Method (BTSW, 1)
Return (One)
}
}
+#else
+ If (LNotEqual (0, Arg0)) {
+ Return (One)
+ }
#endif
Return (Zero)
}