From ef4e3a25fe4768f9e3545a183bebec448a239557 Mon Sep 17 00:00:00 2001 From: Kenny Kessler Date: Wed, 6 Mar 2019 13:28:45 -0600 Subject: [PATCH] mmi_muc_uart: uart: Change Power Supply Type The Phone Power supply which is used to denote that the MOD is attached to a Phone had the incorrect Type. It was set to USB and thus made Framework think that there was a USB cable attached. Fix this by changing to Type MAIN. Change-Id: I145e01a6affd5c74ee46641c4c3c7c1c73618a69 Signed-off-by: Kenny Kessler Reviewed-on: https://gerrit.mot.com/1317772 SME-Granted: SME Approvals Granted SLTApproved: Slta Waiver Tested-by: Jira Key Reviewed-by: Curtis Porter Reviewed-by: Ryan Lattrel Reviewed-by: Kenneth Kessler Submit-Approved: Jira Key --- drivers/mmi_muc_uart/muc_uart.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/mmi_muc_uart/muc_uart.c b/drivers/mmi_muc_uart/muc_uart.c index 8a2ecbfcf5cf..f2f24bf7a5ff 100644 --- a/drivers/mmi_muc_uart/muc_uart.c +++ b/drivers/mmi_muc_uart/muc_uart.c @@ -1574,7 +1574,7 @@ static int muc_uart_set_property(struct power_supply *psy, static const struct power_supply_desc phone_psy_desc = { .name = "phone", - .type = POWER_SUPPLY_TYPE_USB, + .type = POWER_SUPPLY_TYPE_MAIN, .get_property = muc_uart_get_property, .set_property = muc_uart_set_property, .properties = muc_uart_ps_props,