blob: d7a4b680430fcc54e7fac147fb96998ef8f59c70 (
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
|
/*
* smb_charger.c
*
* 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 __SMB_CHARGER_H_
#define __SMB_CHARGER_H_
struct smb_charger_callbacks {
void (*set_charging_state) (struct smb_charger_callbacks *ptr,
int cable_status);
int (*get_status_reg) (struct smb_charger_callbacks *prt);
};
struct smb_charger_data {
void (*register_callbacks)(struct smb_charger_callbacks *ptr);
void (*unregister_callbacks)(void);
void (*set_charge)(int state);
int enable;
int stat;
int ta_nconnected;
int hw_revision;
};
#endif
|