PageRenderTime 22ms CodeModel.GetById 13ms app.highlight 3ms RepoModel.GetById 1ms app.codeStats 0ms

/include/linux/i2c/isl9519.h

https://github.com/airy09/android_kernel_sony_apq8064
C Header | 38 lines | 12 code | 2 blank | 24 comment | 0 complexity | 660dddf2ad8c7ea46612811081543aaa MD5 | raw file
 1/* Copyright (c) 2010-2011, The Linux Foundation. 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#ifndef __ISL9519_H__
14#define __ISL9519_H__
15
16/**
17 * struct isl_platform_data
18 * @chgcurrent:	max current the islchip can draw
19 * @valid_irq:			interrupt for insertion/removal notification
20 * @valid_n_gpio:		gpio to debounce insertion/removal
21 * @valid_config:		machine specific func to configure gpio line
22 * @max_system_voltage:		the max voltage isl should charge battery to
23 * @min_system_voltage:		the min voltage isl should trkl charge the
24 *				battery
25 * @term_current:		the batt current when isl charging should stop
26 * @input_current:		the max current isl should pull from the adapter
27 */
28struct isl_platform_data {
29	int chgcurrent;
30	int valid_n_gpio;
31	int (*chg_detection_config) (void);
32	int max_system_voltage;
33	int min_system_voltage;
34	int term_current;
35	int input_current;
36};
37
38#endif