usb: typec: tcpm: Unconditionally return port->current_limit
authorNolen Johnson <johnsonnolen@gmail.com>
Tue, 21 Dec 2021 19:47:24 +0000 (14:47 -0500)
committerNolen Johnson <johnsonnolen@gmail.com>
Wed, 22 Dec 2021 02:20:06 +0000 (21:20 -0500)
commit3cc289a699f9797d994179ae542a6d305251244b
tree3b391e90d21a435e62c712a39e698c30943ad1f2
parent40e93d5ea74f82bd3394b49d3d96e228793504fa
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