diff options
| author | Kyle Tso <[email protected]> | 2023-06-23 15:10:35 +0000 |
|---|---|---|
| committer | Greg Kroah-Hartman <[email protected]> | 2023-07-25 15:45:29 +0000 |
| commit | 4b642dc9829507e4afabc03d32a18abbdb192c5e (patch) | |
| tree | d4a1d8862512c2b2583cf0189008ab1c402d6897 /rust/helpers.c | |
| parent | usb: typec: Set port->pd before adding device for typec_port (diff) | |
| download | kernel-4b642dc9829507e4afabc03d32a18abbdb192c5e.tar.gz kernel-4b642dc9829507e4afabc03d32a18abbdb192c5e.zip | |
usb: typec: Iterate pds array when showing the pd list
The pointers of each usb_power_delivery handles are stored in "pds"
array returned from the pd_get ops but not in the adjacent memory
calculated from "pd". Get the handles from "pds" array directly instead
of deriving them from "pd".
Fixes: a7cff92f0635 ("usb: typec: USB Power Delivery helpers for ports and partners")
Cc: [email protected]
Signed-off-by: Kyle Tso <[email protected]>
Acked-by: Heikki Krogerus <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Greg Kroah-Hartman <[email protected]>
Diffstat (limited to 'rust/helpers.c')
0 files changed, 0 insertions, 0 deletions
