usb: typec: tcpm: Unconditionally return port->current_limit
authorNolen Johnson <johnsonnolen@gmail.com>
Tue, 21 Dec 2021 19:47:24 +0000 (14:47 -0500)
committerChristian Hoffmann <chrmhoffmann@gmail.com>
Sun, 12 Feb 2023 08:13:15 +0000 (09:13 +0100)
commitd0088d9084819165fadaf6086a2f7a32fa2df182
tree99c53e159a24b16afebb4ac30ed9367fdb9480b4
parentca94574aa21312e0e120c0743a1fd7faf69dc9ba
usb: typec: tcpm: Unconditionally return port->current_limit

* For the function `tcpm_psy_get_current_max`, normally we compare max
  of `port->current_limit` and `tcpm_get_max_fixed_current(port)`, but
  `tcpm_get_max_fixed_current` is guarded by a messy DEBUGFS config
  check. So, lets play it safe and assume that the port's limit is the
  limit.

Change-Id: I9df703cd47f3a94b723b861fbfae0aabf13fb92c
drivers/usb/typec/tcpm.c