blob: 9eee29ede1faf639ff92ea2798c283c45b90ef21 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
|
/*
* stmpe811-adc.h
*
* Copyright (C) 2011 Samsung Electronics
* SangYoung Son <hello.son@samsung.com>
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License version 2 and
* only version 2 as published by the Free Software Foundation.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
*/
#ifndef __STMPE811_ADC_H_
#define __STMPE811_ADC_H_
/*
* struct sec_bat_adc_table_data - adc to temperature table for sec battery
* driver
* @adc_table_chX: adc table for channel X
* @table_size_chX: size of chX adc table
*/
struct stmpe811_platform_data {
struct adc_table_data *adc_table_ch0;
unsigned int table_size_ch0;
struct adc_table_data *adc_table_ch1;
unsigned int table_size_ch1;
struct adc_table_data *adc_table_ch2;
unsigned int table_size_ch2;
struct adc_table_data *adc_table_ch3;
unsigned int table_size_ch3;
struct adc_table_data *adc_table_ch4;
unsigned int table_size_ch4;
struct adc_table_data *adc_table_ch5;
unsigned int table_size_ch5;
struct adc_table_data *adc_table_ch6;
unsigned int table_size_ch6;
struct adc_table_data *adc_table_ch7;
unsigned int table_size_ch7;
int irq_gpio;
};
u16 stmpe811_get_adc_data(u8 channel);
int stmpe811_get_adc_value(u8 channel);
#endif
|