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.
Showing the changes to include/linux/power (1 of 2 files). Show all
Unified · Split
| @@ -28,10 +28,12 @@ · 27 unmodified lines | ||
| 28 | 28 | * struct bq20z75_platform_data - platform data for bq20z75 devices |
| 29 | 29 | * @battery_detect: GPIO which is used to detect battery presence |
| 30 | 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 | 33 | struct bq20z75_platform_data { |
| 33 | 34 | int battery_detect; |
| 34 | 35 | int battery_detect_present; |
| 36 | + int i2c_retry_count; | |
| 35 | 37 | }; |
| 36 | 38 | |
| 37 | 39 | #endif |