Skip to content

Commit 933bb7b

Browse files
javiercarrascocruzgregkh
authored andcommitted
usb: typec: tipd: fix use of device-specific init function
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 <javier.carrasco.cruz@gmail.com> Reviewed-by: Heikki Krogerus <heikki.krogerus@linux.intel.com> Suggested-by: Roger Quadros <rogerq@kernel.org> Link: https://lore.kernel.org/r/20240104-dev_spec_init-v1-1-1a57e7fd8cc8@gmail.com Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
1 parent 1154e43 commit 933bb7b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

drivers/usb/typec/tipd/core.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1500,7 +1500,7 @@ static int __maybe_unused tps6598x_resume(struct device *dev)
15001500
return ret;
15011501

15021502
if (ret == TPS_MODE_PTCH) {
1503-
ret = tps25750_init(tps);
1503+
ret = tps->data->init(tps);
15041504
if (ret)
15051505
return ret;
15061506
}

0 commit comments

Comments
 (0)