PageRenderTime 17ms CodeModel.GetById 9ms app.highlight 3ms RepoModel.GetById 1ms app.codeStats 0ms

/include/linux/i2c/smb137b.h

https://github.com/airy09/android_kernel_sony_apq8064
C Header | 33 lines | 9 code | 3 blank | 21 comment | 0 complexity | 74eb864ca18bfdd455dc92481aa1b0d0 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 __SMB137B_H__
14#define __SMB137B_H__
15
16/**
17 * struct smb137b_platform_data
18 * structure to pass board specific information to the smb137b charger driver
19 * @chgcurrent:	max current the smb137bchip can draw
20 * @valid_n_gpio:		gpio to debounce insertion/removal
21 * @chg_detection_config:	machine specific func to configure
22 *				insertion/removal gpio line
23 * @batt_mah_rating:		the battery current rating
24 */
25struct smb137b_platform_data {
26	int valid_n_gpio;
27	int (*chg_detection_config) (void);
28	int batt_mah_rating;
29};
30
31void smb137b_otg_power(int on);
32
33#endif