diff options
| author | Konrad Rzeszutek Wilk <konrad.wilk@oracle.com> | 2012-10-19 15:19:19 -0400 |
|---|---|---|
| committer | Konrad Rzeszutek Wilk <konrad.wilk@oracle.com> | 2012-10-19 15:19:19 -0400 |
| commit | e05dacd71db0a5da7c1a44bcaab2a8a240b9c233 (patch) | |
| tree | 31382cf1c7d62c03126448affb2fc86e8c4aaa8b /include/linux/platform_data/lp8727.h | |
| parent | 3ab0b83bf6a1e834f4b884150d8012990c75d25d (diff) | |
| parent | ddffeb8c4d0331609ef2581d84de4d763607bd37 (diff) | |
Merge commit 'v3.7-rc1' into stable/for-linus-3.7
* commit 'v3.7-rc1': (10892 commits)
Linux 3.7-rc1
x86, boot: Explicitly include autoconf.h for hostprogs
perf: Fix UAPI fallout
ARM: config: make sure that platforms are ordered by option string
ARM: config: sort select statements alphanumerically
UAPI: (Scripted) Disintegrate include/linux/byteorder
UAPI: (Scripted) Disintegrate include/linux
UAPI: Unexport linux/blk_types.h
UAPI: Unexport part of linux/ppp-comp.h
perf: Handle new rbtree implementation
procfs: don't need a PATH_MAX allocation to hold a string representation of an int
vfs: embed struct filename inside of names_cache allocation if possible
audit: make audit_inode take struct filename
vfs: make path_openat take a struct filename pointer
vfs: turn do_path_lookup into wrapper around struct filename variant
audit: allow audit code to satisfy getname requests from its names_list
vfs: define struct filename and have getname() return it
btrfs: Fix compilation with user namespace support enabled
userns: Fix posix_acl_file_xattr_userns gid conversion
userns: Properly print bluetooth socket uids
...
Diffstat (limited to 'include/linux/platform_data/lp8727.h')
| -rw-r--r-- | include/linux/platform_data/lp8727.h | 51 |
1 files changed, 27 insertions, 24 deletions
diff --git a/include/linux/platform_data/lp8727.h b/include/linux/platform_data/lp8727.h index ea98c6133d32..47128a50e04e 100644 --- a/include/linux/platform_data/lp8727.h +++ b/include/linux/platform_data/lp8727.h | |||
| @@ -13,32 +13,32 @@ | |||
| 13 | #define _LP8727_H | 13 | #define _LP8727_H |
| 14 | 14 | ||
| 15 | enum lp8727_eoc_level { | 15 | enum lp8727_eoc_level { |
| 16 | EOC_5P, | 16 | LP8727_EOC_5P, |
| 17 | EOC_10P, | 17 | LP8727_EOC_10P, |
| 18 | EOC_16P, | 18 | LP8727_EOC_16P, |
| 19 | EOC_20P, | 19 | LP8727_EOC_20P, |
| 20 | EOC_25P, | 20 | LP8727_EOC_25P, |
| 21 | EOC_33P, | 21 | LP8727_EOC_33P, |
| 22 | EOC_50P, | 22 | LP8727_EOC_50P, |
| 23 | }; | 23 | }; |
| 24 | 24 | ||
| 25 | enum lp8727_ichg { | 25 | enum lp8727_ichg { |
| 26 | ICHG_90mA, | 26 | LP8727_ICHG_90mA, |
| 27 | ICHG_100mA, | 27 | LP8727_ICHG_100mA, |
| 28 | ICHG_400mA, | 28 | LP8727_ICHG_400mA, |
| 29 | ICHG_450mA, | 29 | LP8727_ICHG_450mA, |
| 30 | ICHG_500mA, | 30 | LP8727_ICHG_500mA, |
| 31 | ICHG_600mA, | 31 | LP8727_ICHG_600mA, |
| 32 | ICHG_700mA, | 32 | LP8727_ICHG_700mA, |
| 33 | ICHG_800mA, | 33 | LP8727_ICHG_800mA, |
| 34 | ICHG_900mA, | 34 | LP8727_ICHG_900mA, |
| 35 | ICHG_1000mA, | 35 | LP8727_ICHG_1000mA, |
| 36 | }; | 36 | }; |
| 37 | 37 | ||
| 38 | /** | 38 | /** |
| 39 | * struct lp8727_chg_param | 39 | * struct lp8727_chg_param |
| 40 | * @eoc_level : end of charge level setting | 40 | * @eoc_level : end of charge level setting |
| 41 | * @ichg : charging current | 41 | * @ichg : charging current |
| 42 | */ | 42 | */ |
| 43 | struct lp8727_chg_param { | 43 | struct lp8727_chg_param { |
| 44 | enum lp8727_eoc_level eoc_level; | 44 | enum lp8727_eoc_level eoc_level; |
| @@ -47,19 +47,22 @@ struct lp8727_chg_param { | |||
| 47 | 47 | ||
| 48 | /** | 48 | /** |
| 49 | * struct lp8727_platform_data | 49 | * struct lp8727_platform_data |
| 50 | * @get_batt_present : check battery status - exists or not | 50 | * @get_batt_present : check battery status - exists or not |
| 51 | * @get_batt_level : get battery voltage (mV) | 51 | * @get_batt_level : get battery voltage (mV) |
| 52 | * @get_batt_capacity : get battery capacity (%) | 52 | * @get_batt_capacity : get battery capacity (%) |
| 53 | * @get_batt_temp : get battery temperature | 53 | * @get_batt_temp : get battery temperature |
| 54 | * @ac, @usb : charging parameters each charger type | 54 | * @ac : charging parameters for AC type charger |
| 55 | * @usb : charging parameters for USB type charger | ||
| 56 | * @debounce_msec : interrupt debounce time | ||
| 55 | */ | 57 | */ |
| 56 | struct lp8727_platform_data { | 58 | struct lp8727_platform_data { |
| 57 | u8 (*get_batt_present)(void); | 59 | u8 (*get_batt_present)(void); |
| 58 | u16 (*get_batt_level)(void); | 60 | u16 (*get_batt_level)(void); |
| 59 | u8 (*get_batt_capacity)(void); | 61 | u8 (*get_batt_capacity)(void); |
| 60 | u8 (*get_batt_temp)(void); | 62 | u8 (*get_batt_temp)(void); |
| 61 | struct lp8727_chg_param ac; | 63 | struct lp8727_chg_param *ac; |
| 62 | struct lp8727_chg_param usb; | 64 | struct lp8727_chg_param *usb; |
| 65 | unsigned int debounce_msec; | ||
| 63 | }; | 66 | }; |
| 64 | 67 | ||
| 65 | #endif | 68 | #endif |
