sb_firmware_update: Remove battery HWID check

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>
This commit is contained in:
Bruce
2016-03-03 18:41:48 +08:00
committed by chrome-bot
parent da191ee1ac
commit 1e20c1f88d

View File

@@ -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,