diff options
author | Rhyland Klein <rklein@nvidia.com> | 2011-02-28 19:55:29 -0500 |
---|---|---|
committer | Anton Vorontsov <cbouatmailru@gmail.com> | 2011-03-01 14:24:19 -0500 |
commit | ff28fcef1bedcfbdf49500fee1573dc2f3eedb22 (patch) | |
tree | c9aa6c77a3c79b997114717ccb7f4e7604b8a9fc /include/linux/power | |
parent | bb879101606dd7235d8f4ecd0f707b63281d0838 (diff) |
bq20z75: Add i2c retry mechanism
With the support of platform data, now adding support for option i2c
retries on read/write failures. Ths is specified through the optional
platform data.
Signed-off-by: Rhyland Klein <rklein@nvidia.com>
Signed-off-by: Anton Vorontsov <cbouatmailru@gmail.com>
Diffstat (limited to 'include/linux/power')
-rw-r--r-- | include/linux/power/bq20z75.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/include/linux/power/bq20z75.h b/include/linux/power/bq20z75.h index 0e1b8a26a9b1..b0843b68af92 100644 --- a/include/linux/power/bq20z75.h +++ b/include/linux/power/bq20z75.h | |||
@@ -28,10 +28,12 @@ | |||
28 | * struct bq20z75_platform_data - platform data for bq20z75 devices | 28 | * struct bq20z75_platform_data - platform data for bq20z75 devices |
29 | * @battery_detect: GPIO which is used to detect battery presence | 29 | * @battery_detect: GPIO which is used to detect battery presence |
30 | * @battery_detect_present: gpio state when battery is present (0 / 1) | 30 | * @battery_detect_present: gpio state when battery is present (0 / 1) |
31 | * @i2c_retry_count: # of times to retry on i2c IO failure | ||
31 | */ | 32 | */ |
32 | struct bq20z75_platform_data { | 33 | struct bq20z75_platform_data { |
33 | int battery_detect; | 34 | int battery_detect; |
34 | int battery_detect_present; | 35 | int battery_detect_present; |
36 | int i2c_retry_count; | ||
35 | }; | 37 | }; |
36 | 38 | ||
37 | #endif | 39 | #endif |