Commit 64eaa0fa authored by Benson Leung's avatar Benson Leung Committed by Greg Kroah-Hartman

platform/chrome: cros_ec_typec: Fix call to typec_partner_set_pd_revision

typec_partner_set_pd_revision returns void now.

Fixes: cefc011f ("platform/chrome: cros_ec_typec: Set Partner PD revision from status")
Signed-off-by: default avatarBenson Leung <bleung@chromium.org>
Link: https://lore.kernel.org/r/20210202164531.3982778-1-bleung@chromium.orgSigned-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent 32e9b48d
......@@ -842,11 +842,7 @@ static int cros_typec_handle_sop_disc(struct cros_typec_data *typec, int port_nu
goto disc_exit;
}
ret = typec_partner_set_pd_revision(port->partner, pd_revision);
if (ret < 0) {
dev_err(typec->dev, "Failed to update partner PD revision, port: %d\n", port_num);
goto disc_exit;
}
typec_partner_set_pd_revision(port->partner, pd_revision);
memset(sop_disc, 0, EC_PROTO2_MAX_RESPONSE_SIZE);
ret = cros_typec_ec_command(typec, 0, EC_CMD_TYPEC_DISCOVERY, &req, sizeof(req),
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment