usb: typec: tcpm: Correct port source pdo array in pd_set callback
authorKyle Tso <kyletso@google.com>
Mon, 11 Mar 2024 14:45:00 +0000 (22:45 +0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 26 Mar 2024 10:00:35 +0000 (11:00 +0100)
commit893cd9469c68a89a34956121685617dbb37497b1
tree6f0b8d12933068df105fa689a8e47a09705b4da9
parentcd5432c712351a3d5f82512908f5febfca946ca6
usb: typec: tcpm: Correct port source pdo array in pd_set callback

In tcpm_pd_set, the array of port source capabilities is port->src_pdo,
not port->snk_pdo.

Fixes: cd099cde4ed2 ("usb: typec: tcpm: Support multiple capabilities")
Cc: stable@vger.kernel.org
Signed-off-by: Kyle Tso <kyletso@google.com>
Acked-by: Heikki Krogerus <heikki.krogerus@linux.intel.com>
Link: https://lore.kernel.org/r/20240311144500.3694849-1-kyletso@google.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/usb/typec/tcpm/tcpm.c