diff options
author | Prashant Malani <[email protected]> | 2023-01-11 02:05:42 +0000 |
---|---|---|
committer | Greg Kroah-Hartman <[email protected]> | 2023-01-17 17:07:25 +0100 |
commit | 9682b41e52cc9f42f5c33caf410464392adaef04 (patch) | |
tree | 23863f4480cf5b5a7b8f6c0b19ce5d09d6719354 /scripts/gdb/linux/device.py | |
parent | 582836e3cfab4faafbdc93bbec96fce036a08ee1 (diff) |
usb: typec: altmodes/displayport: Fix pin assignment calculation
Commit c1e5c2f0cb8a ("usb: typec: altmodes/displayport: correct pin
assignment for UFP receptacles") fixed the pin assignment calculation
to take into account whether the peripheral was a plug or a receptacle.
But the "pin_assignments" sysfs logic was not updated. Address this by
using the macros introduced in the aforementioned commit in the sysfs
logic too.
Fixes: c1e5c2f0cb8a ("usb: typec: altmodes/displayport: correct pin assignment for UFP receptacles")
Cc: [email protected]
Cc: Heikki Krogerus <[email protected]>
Signed-off-by: Prashant Malani <[email protected]>
Reviewed-by: Benson Leung <[email protected]>
Reviewed-by: Heikki Krogerus <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Greg Kroah-Hartman <[email protected]>
Diffstat (limited to 'scripts/gdb/linux/device.py')
0 files changed, 0 insertions, 0 deletions