Skip to content

Commit

Permalink
usb: typec: tipd: fix use of device-specific init function
Browse files Browse the repository at this point in the history
The current implementation supports device-pecific callbacks for the
init function with a function pointer. The patch that introduced this
feature did not update one call to the tps25750 init function to turn it
into a call with the new pointer in the resume function.

Fixes: d49f908 ("usb: typec: tipd: add init and reset functions to tipd_data")
Signed-off-by: Javier Carrasco <[email protected]>
Reviewed-by: Heikki Krogerus <[email protected]>
Suggested-by: Roger Quadros <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Greg Kroah-Hartman <[email protected]>
  • Loading branch information
javiercarrascocruz authored and gregkh committed Jan 5, 2024
1 parent 1154e43 commit 933bb7b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/usb/typec/tipd/core.c
Original file line number Diff line number Diff line change
Expand Up @@ -1500,7 +1500,7 @@ static int __maybe_unused tps6598x_resume(struct device *dev)
return ret;

if (ret == TPS_MODE_PTCH) {
ret = tps25750_init(tps);
ret = tps->data->init(tps);
if (ret)
return ret;
}
Expand Down

0 comments on commit 933bb7b

Please sign in to comment.