diff options
author | Kyle Tso <kyletso@google.com> | 2021-08-27 14:50:42 +0800 |
---|---|---|
committer | Will McVicker <willmcvicker@google.com> | 2022-05-20 14:46:56 -0700 |
commit | 87867f32cbb189a89712b89aef331cbd1fbe6d12 (patch) | |
tree | 31994e1be87ae651f99e89779c2af6d140d549d0 | |
parent | a616061f102b539b421072acfe9583b4a788de5b (diff) | |
download | raviole-device-87867f32cbb189a89712b89aef331cbd1fbe6d12.tar.gz |
usbc_cooling_dev: Fix wrong parameters in gvotable_cast_vote
Bug: 183679010
Signed-off-by: Kyle Tso <kyletso@google.com>
Change-Id: I4cbfae6fc9f4dfe35823526078c3e3cdb6d4dcb4
(cherry picked from commit 89b50cdc45518002fdb41366f26d3a91ad10e8dd)
Signed-off-by: Will McVicker <willmcvicker@google.com>
-rw-r--r-- | drivers/usb/typec/tcpm/google/usbc_cooling_dev.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/usb/typec/tcpm/google/usbc_cooling_dev.c b/drivers/usb/typec/tcpm/google/usbc_cooling_dev.c index f2df2ec75..18a122b81 100644 --- a/drivers/usb/typec/tcpm/google/usbc_cooling_dev.c +++ b/drivers/usb/typec/tcpm/google/usbc_cooling_dev.c @@ -182,7 +182,7 @@ static int suspend_usb(struct usb_port_cooling_dev_info *usb_cdev_info) /* suspend USBIN */ ret = gvotable_cast_vote(usb_cdev_info->usb_icl_votable, USBC_COOLING_DEV_VOTER, - (void *)ENABLE_ICL_VOTE, THROTTLE_USBIN_LIMIT); + (void *)THROTTLE_USBIN_LIMIT, ENABLE_ICL_VOTE); if (ret < 0) { dev_err(usb_cdev_info->dev, "Couldn't vote for USB ICL ret=%d\n", ret); return ret; @@ -213,7 +213,7 @@ static int resume_usb(struct usb_port_cooling_dev_info *usb_cdev_info) /* enable USBIN */ ret = gvotable_cast_vote(usb_cdev_info->usb_icl_votable, USBC_COOLING_DEV_VOTER, - (void *)DISABLE_ICL_VOTE, THROTTLE_USBIN_LIMIT); + (void *)THROTTLE_USBIN_LIMIT, DISABLE_ICL_VOTE); if (ret < 0) { dev_err(usb_cdev_info->dev, "Couldn't un-vote for USB ICL ret=%d\n", ret); return ret; |