* 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
if (port->pps_data.active)
val->intval = port->pps_data.max_curr * 1000;
else
- val->intval = max_t(size_t, tcpm_get_max_fixed_current(port),
- port->current_limit) * 1000;
-
+ val->intval = port->current_limit * 1000;
return 0;
}