Linux Kernel
3.7.1
Main Page
Related Pages
Modules
Namespaces
Data Structures
Files
File List
Globals
All
Data Structures
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Macros
Groups
Pages
include
linux
mfd
abx500
ux500_chargalg.h
Go to the documentation of this file.
1
/*
2
* Copyright (C) ST-Ericsson SA 2012
3
* Author: Johan Gardsmark <
[email protected]
> for ST-Ericsson.
4
* License terms: GNU General Public License (GPL), version 2
5
*/
6
7
#ifndef _UX500_CHARGALG_H
8
#define _UX500_CHARGALG_H
9
10
#include <
linux/power_supply.h
>
11
12
#define psy_to_ux500_charger(x) container_of((x), \
13
struct ux500_charger, psy)
14
15
/* Forward declaration */
16
struct
ux500_charger
;
17
18
struct
ux500_charger_ops
{
19
int
(*
enable
) (
struct
ux500_charger
*,
int
,
int
,
int
);
20
int
(*
kick_wd
) (
struct
ux500_charger
*);
21
int
(*
update_curr
) (
struct
ux500_charger
*,
int
);
22
};
23
31
struct
ux500_charger
{
32
struct
power_supply
psy
;
33
struct
ux500_charger_ops
ops
;
34
int
max_out_volt
;
35
int
max_out_curr
;
36
};
37
38
#endif
Generated on Thu Jan 10 2013 14:51:52 for Linux Kernel by
1.8.2