isp1704_charger: Add DT support

This patch introduces device tree support to the isp1704 charger driver.
Adding support involved moving the handling of the enable GPIO from board
code into the driver.

Signed-off-by: Sebastian Reichel <sre@debian.org>
Signed-off-by: Anton Vorontsov <anton@enomsg.org>
This commit is contained in:
Sebastian Reichel 2013-12-01 02:00:10 +01:00 committed by Anton Vorontsov
parent 434a09f9c4
commit 34a109610e
2 changed files with 51 additions and 4 deletions

View file

@ -24,6 +24,7 @@
struct isp1704_charger_data {
void (*set_power)(bool on);
int enable_gpio;
};
#endif