Skip to content

Commit

Permalink
platform/chrome: cros_ec_typec: Fix call to typec_partner_set_pd_revi…
Browse files Browse the repository at this point in the history
…sion

typec_partner_set_pd_revision returns void now.

Fixes: cefc011 ("platform/chrome: cros_ec_typec: Set Partner PD revision from status")
Signed-off-by: Benson Leung <bleung@chromium.org>
Link: https://lore.kernel.org/r/20210202164531.3982778-1-bleung@chromium.org
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
  • Loading branch information
Benson Leung authored and Greg Kroah-Hartman committed Feb 2, 2021
1 parent 32e9b48 commit 64eaa0f
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions drivers/platform/chrome/cros_ec_typec.c
Original file line number Diff line number Diff line change
Expand Up @@ -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),
Expand Down

0 comments on commit 64eaa0f

Please sign in to comment.