power: bq24735-charger: fix failed i2c with ac-detect
authorJonathan Tinkham <sctincman@gmail.com>
Wed, 3 Feb 2016 06:03:44 +0000 (23:03 -0700)
committerSebastian Reichel <sre@kernel.org>
Mon, 15 Feb 2016 05:35:21 +0000 (06:35 +0100)
commit1a3adce1c2c83498f0f9285c504b380fb4182d0d
treebaa38187800d0374b4d7e5c087f13fe2c48fd6a4
parent4f4bfe6bf116d98e336a08ee19ac5754ba0f9f4a
power: bq24735-charger: fix failed i2c with ac-detect

When an ac-detect pin exists, but the charger is not plugged in,
the chip will not respond to i2c messages, causing the module to
fail when inserted.

Signed-off-by: Jonathan Tinkham <sctincman@gmail.com>
Signed-off-by: Sebastian Reichel <sre@kernel.org>
drivers/power/bq24735-charger.c