max17042_battery: Add suspend/resume hooks
authorRamakrishna Pallala <ramakrishna.pallala@intel.com>
Mon, 26 Mar 2012 20:53:40 +0000 (02:23 +0530)
committerAnton Vorontsov <anton.vorontsov@linaro.org>
Sat, 5 May 2012 02:37:37 +0000 (19:37 -0700)
This patch adds suspend/resume methods to the driver.

In suspend method irq line is disabled to avoid i2c
read/write errors from the interrupt handler as the
i2c bus itself could be in suspend state.
In resume function irq line will be re-enabled.

Signed-off-by: Ramakrishna Pallala <ramakrishna.pallala@intel.com>
Signed-off-by: Anton Vorontsov <anton.vorontsov@linaro.org>

No differences found