blob: 258322b16fc597cf2f63e7d47cd465effd079357 [file] [log] [blame]
// Copyright 2023 The ChromiumOS Authors
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include "libec/charge_current_limit_set_command.h"
namespace ec {
ChargeCurrentLimitSetCommand::ChargeCurrentLimitSetCommand(uint32_t limit_mA)
: EcCommand(EC_CMD_CHARGE_CURRENT_LIMIT) {
Req()->limit = limit_mA;
}
} // namespace ec