blob: e36a90a335f1c8171ae02689fdf7c82e2e157c7e [file] [log] [blame]
Bryan Huntsman3f2bc4d2011-08-16 17:27:22 -07001/* Copyright (c) 2010-2011, Code Aurora Forum. All rights reserved.
2 *
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 */