aboutsummaryrefslogtreecommitdiffstats
path: root/include/linux/stmpe811-adc.h
diff options
context:
space:
mode:
authorcodeworkx <daniel.hillenbrand@codeworkx.de>2012-06-02 13:09:29 +0200
committercodeworkx <daniel.hillenbrand@codeworkx.de>2012-06-02 13:09:29 +0200
commitc6da2cfeb05178a11c6d062a06f8078150ee492f (patch)
treef3b4021d252c52d6463a9b3c1bb7245e399b009c /include/linux/stmpe811-adc.h
parentc6d7c4dbff353eac7919342ae6b3299a378160a6 (diff)
downloadkernel_samsung_smdk4412-c6da2cfeb05178a11c6d062a06f8078150ee492f.zip
kernel_samsung_smdk4412-c6da2cfeb05178a11c6d062a06f8078150ee492f.tar.gz
kernel_samsung_smdk4412-c6da2cfeb05178a11c6d062a06f8078150ee492f.tar.bz2
samsung update 1
Diffstat (limited to 'include/linux/stmpe811-adc.h')
-rw-r--r--include/linux/stmpe811-adc.h52
1 files changed, 52 insertions, 0 deletions
diff --git a/include/linux/stmpe811-adc.h b/include/linux/stmpe811-adc.h
new file mode 100644
index 0000000..9eee29e
--- /dev/null
+++ b/include/linux/stmpe811-adc.h
@@ -0,0 +1,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
+