aboutsummaryrefslogtreecommitdiffstats
path: root/include/linux/power/smb136_charger.h
blob: a6414d8ddb9e646f66e2e7e701ad9ed1de5533ba (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
/*
 *  Copyright (C) 2011 Samsung Electronics
 *  Ikkeun Kim <iks.kim@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 as
 * published by the Free Software Foundation.
 */

#ifndef __SMB136_CHARGER_H_
#define __SMB136_CHARGER_H_

struct smb_charger_callbacks {
	void (*set_charging_state) (int, int);
	int (*get_charging_state) (void);
	void (*set_charging_current) (int);
	int (*get_charging_current) (void);
};

struct smb_charger_data {
	void (*register_callbacks)(struct smb_charger_callbacks *);
	void (*unregister_callbacks)(void);
	int enable;
	int stat;
	int ta_nconnected;
};

#endif