From bfc855d0fe7d8b3f78412eff43dc62976188522c Mon Sep 17 00:00:00 2001 From: Bruce Date: Thu, 3 Mar 2016 18:41:48 +0800 Subject: 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 Reviewed-on: https://chromium-review.googlesource.com/330231 Commit-Ready: Keith Tzeng Tested-by: Bruce Wan Reviewed-by: Shawn N (cherry picked from commit 1e20c1f88d187aabe03f5f80db8a189dafb14ac5) Reviewed-on: https://chromium-review.googlesource.com/334515 Reviewed-by: Bernie Thompson Commit-Queue: Keith Tzeng Tested-by: Keith Tzeng --- util/ec_sb_firmware_update.c | 9 --------- 1 file changed, 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, -- cgit v1.2.1