blob: e7628b0be100779d00dfedaf4d5fc14a94ea80a3 [file] [log] [blame]
Duy Truong790f06d2013-02-13 16:38:12 -08001/* Copyright (c) 2010-2011, The Linux Foundation. All rights reserved.
Bryan Huntsman3f2bc4d2011-08-16 17:27:22 -07002 *
3 * This program is free software; you can redistribute it and/or modify
4 * it under the terms of the GNU General Public License version 2 and
5 * only version 2 as published by the Free Software Foundation.
6 *
7 * This program is distributed in the hope that it will be useful,
8 * but WITHOUT ANY WARRANTY; without even the implied warranty of
9 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
10 * GNU General Public License for more details.
11 *
12 */
13
14#ifndef _M_ADC_PROC_H
15#define _M_ADC_PROC_H
16
17#include <linux/msm_adc.h>
18int32_t tdkntcgtherm(int32_t adc_code, const struct adc_properties *,
19 const struct chan_properties *, struct adc_chan_result *);
20int32_t scale_default(int32_t adc_code, const struct adc_properties *,
21 const struct chan_properties *, struct adc_chan_result *);
22int32_t scale_msm_therm(int32_t adc_code, const struct adc_properties *,
23 const struct chan_properties *, struct adc_chan_result *);
24int32_t scale_batt_therm(int32_t adc_code, const struct adc_properties *,
25 const struct chan_properties *, struct adc_chan_result *);
26int32_t scale_pmic_therm(int32_t adc_code, const struct adc_properties *,
27 const struct chan_properties *, struct adc_chan_result *);
28int32_t scale_xtern_chgr_cur(int32_t adc_code, const struct adc_properties *,
29 const struct chan_properties *, struct adc_chan_result *);
30#endif /* _M_ADC_PROC_H */