mirror of
https://github.com/Telecominfraproject/OpenCellular.git
synced 2026-01-09 17:11:42 +00:00
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:
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user