google_cpm: fix length check failure on mdis init

Length of mdis-out-x-limits including tcpm_psy and wlc_dc_psy
is twice thermal_levels. Use mdis_in_count to check length to avoid
failure when charge pump is not supported.

Bug: 240362572
Signed-off-by: Jack Wu <[email protected]>
Change-Id: Iaae3b27f67e15cacff4e33e72b2c5f214186caa5
1 file changed