summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBruce <Bruce.Wan@quantatw.com>2016-03-03 18:41:48 +0800
committerChromeOS bot <3su6n15k.default@developer.gserviceaccount.com>2016-03-25 23:53:46 +0000
commitbfc855d0fe7d8b3f78412eff43dc62976188522c (patch)
treea6c85e01927e2aefb72042667b6ddb8710a0d4c1
parentee86be472d74c3245c0443171b3552fcbdde8929 (diff)
downloadchrome-ec-stabilize-7978.51.B.tar.gz
sb_firmware_update: Remove battery HWID checkstabilize-7978.51.B
We're supporting a wide range of batteries, and since file name matching is based on HWID, we don't need to maintain a separate table of supported HWIDs in our utility. BUG=chrome-os-partner:49589,chrome-os-partner:50469 BRANCH=None TEST=buildall Change-Id: I3e7c62379c07a598e23f3c543959503d3d25aee3 Signed-off-by: Bruce.Wan <Bruce.Wan@quantatw.com> Reviewed-on: https://chromium-review.googlesource.com/330231 Commit-Ready: Keith Tzeng <keith.tzeng@quantatw.com> Tested-by: Bruce Wan <Bruce.Wan@quantatw.com> Reviewed-by: Shawn N <shawnn@chromium.org> (cherry picked from commit 1e20c1f88d187aabe03f5f80db8a189dafb14ac5) Reviewed-on: https://chromium-review.googlesource.com/334515 Reviewed-by: Bernie Thompson <bhthompson@chromium.org> Commit-Queue: Keith Tzeng <keith.tzeng@quantatw.com> Tested-by: Keith Tzeng <keith.tzeng@quantatw.com>
-rw-r--r--util/ec_sb_firmware_update.c9
1 files changed, 0 insertions, 9 deletions
diff --git a/util/ec_sb_firmware_update.c b/util/ec_sb_firmware_update.c
index f910cddcc4..3ec6e2b6a4 100644
--- a/util/ec_sb_firmware_update.c
+++ b/util/ec_sb_firmware_update.c
@@ -18,9 +18,6 @@
#include "misc_util.h"
#include "powerd_lock.h"
-#define SIMPLO_MAKER_ID 0x5
-#define SIMPLO_HWID 0x74
-
/* Subcommands: [check|update] */
enum {
OP_UNKNOWN = 0,
@@ -429,12 +426,6 @@ static enum fw_update_state s1_read_battery_info(
}
print_info(&fw_update->info);
- if ((fw_update->info.maker_id != SIMPLO_MAKER_ID) ||
- (fw_update->info.hardware_id != SIMPLO_HWID)) {
- log_msg(fw_update, S1_READ_INFO, "No Updates.");
- return S10_TERMINAL;
- }
-
sprintf(fw_update->image_name,
"/lib/firmware/battery/maker.%04x.hwid.%04x.bin",
fw_update->info.maker_id,