mirror of
https://github.com/Telecominfraproject/OpenCellular.git
synced 2026-01-12 10:55:21 +00:00
usb_port_power: Use same name for mode set function
Dumb USB ports do not have the same notion of charge mode as smart ports. However, the header common/usb_charge.h declares a function for changing charge mode that the dumb USB port power implementation does not define. Instead, it defines a similar function with a different name, albeit with other allowed values for its second parameter. This patch makes the names the same so the function can be used by simply including the aforementioned header file. BUG=none BRANCH=fizz TEST=emerge-fizz chromeos-ec Change-Id: I87863f87f32f538cc1c723d9299afcc7353e1852 Signed-off-by: Emil Lundmark <lndmrk@chromium.org> Reviewed-on: https://chromium-review.googlesource.com/1069272 Reviewed-by: Randall Spangler <rspangler@chromium.org> Reviewed-by: Vincent Palatin <vpalatin@chromium.org>
This commit is contained in:
committed by
chrome-bot
parent
3eb6cd87a1
commit
cc7889bfae
@@ -47,7 +47,7 @@ static void usb_port_all_ports_off(void)
|
||||
/*****************************************************************************/
|
||||
/* Host commands */
|
||||
|
||||
int usb_port_set_mode(int port_id, enum usb_charge_mode mode)
|
||||
int usb_charge_set_mode(int port_id, enum usb_charge_mode mode)
|
||||
{
|
||||
CPRINTS("USB port p%d %d", port_id, mode);
|
||||
|
||||
@@ -72,7 +72,7 @@ static int usb_port_command_set_mode(struct host_cmd_handler_args *args)
|
||||
{
|
||||
const struct ec_params_usb_charge_set_mode *p = args->params;
|
||||
|
||||
if (usb_port_set_mode(p->usb_port_id, p->mode) != EC_SUCCESS)
|
||||
if (usb_charge_set_mode(p->usb_port_id, p->mode) != EC_SUCCESS)
|
||||
return EC_RES_ERROR;
|
||||
|
||||
return EC_RES_SUCCESS;
|
||||
|
||||
Reference in New Issue
Block a user