PageRenderTime 27ms CodeModel.GetById 22ms app.highlight 2ms RepoModel.GetById 1ms app.codeStats 0ms

/include/linux/i2c/smb349.h

https://github.com/airy09/android_kernel_sony_apq8064
C Header | 31 lines | 9 code | 3 blank | 19 comment | 0 complexity | 1b5a1514b66c486528433bb633bf0676 MD5 | raw file
 1/* Copyright (c) 2012 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 __SMB349_H__
14#define __SMB349_H__
15
16#define SMB349_NAME		"smb349"
17
18/**
19 * struct smb349_platform_data
20 * structure to pass board specific information to the smb137b charger driver
21 * @chg_current_ma:		maximum fast charge current in mA
22 * @en_n_gpio:		gpio to enable or disable charging
23 * @chg_susp_gpio:	put active low to allow chip to suspend and disable I2C
24 */
25struct smb349_platform_data {
26	int en_n_gpio;
27	int chg_susp_gpio;
28	int chg_current_ma;
29};
30
31#endif