History

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.

Rhyland Klein committed 15 years ago

Commit ff28fce1 parent bb879102 files · +33 −6Browse files

Showing the changes to include/linux/power (1 of 2 files). Show all

Unified · Split

include/linux/power/bq20z75.h+2−0
@@ -28,10 +28,12 @@ · 27 unmodified lines
2828 * struct bq20z75_platform_data - platform data for bq20z75 devices
2929 * @battery_detect: GPIO which is used to detect battery presence
3030 * @battery_detect_present: gpio state when battery is present (0 / 1)
31+ * @i2c_retry_count: # of times to retry on i2c IO failure
3132 */
3233 struct bq20z75_platform_data {
3334 int battery_detect;
3435 int battery_detect_present;
36+ int i2c_retry_count;
3537 };
3638
3739 #endif