]> Git Repo - J-linux.git/commitdiff
usb: typec: tipd: fix use of device-specific init function
authorJavier Carrasco <[email protected]>
Thu, 4 Jan 2024 17:07:12 +0000 (18:07 +0100)
committerGreg Kroah-Hartman <[email protected]>
Fri, 5 Jan 2024 12:52:53 +0000 (13:52 +0100)
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: d49f90822015 ("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]>
drivers/usb/typec/tipd/core.c

index 8ba2aa05db519bab622c1b2f2143ce6a50eb6b31..0717cfcd9f8cad4aa838f05237f1cbb794dcaf1d 100644 (file)
@@ -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;
        }
This page took 0.05382 seconds and 4 git commands to generate.