ctp_charger: fix the temperature look up logic.
BZ: 36483
This patch fixes the temperature look up logic in
ctp_sfi_temp_range_lookup. This patch also cleans up the SFI
table population in ctp_sfi_table_populate.
Change-Id: I43ebae25f47525fc455be1eaa251033318c1be0a
Signed-off-by: Pankaj Mistry <pankaj.mistry@intel.com>
Reviewed-on: http://android.intel.com:8080/49212
Reviewed-by: Pallala, Ramakrishna <ramakrishna.pallala@intel.com>
Reviewed-by: Tank, Jayesh KumarX <jayesh.kumarx.tank@intel.com>
Reviewed-by: Pandey, Raj <raj.pandey@intel.com>
Tested-by: Kallappa Manjanna, MadhukumarX <madhukumarx.kallappa.manjanna@intel.com>
Reviewed-by: buildbot <buildbot@intel.com>
Tested-by: buildbot <buildbot@intel.com>