]> git.karo-electronics.de Git - linux-beck.git/commit
twl4030_charger: fix compile error when TWL4030_MADC not available.
authorNeilBrown <neil@brown.name>
Fri, 7 Aug 2015 03:45:25 +0000 (13:45 +1000)
committerSebastian Reichel <sre@kernel.org>
Fri, 7 Aug 2015 05:04:56 +0000 (07:04 +0200)
commitb49d15d138aa4632f35a2db93dee775d920f3653
treef273623e7839667c5de84ecb36406d5a85d34f60
parentc9f85a90d41476aca2d3b60f98ab87d7ae1b8612
twl4030_charger: fix compile error when TWL4030_MADC not available.

We can only use the madc to check for 'ac' availability if the madc has
been compiled in.  If not: assume always using USB.

Reported-by: Tony Lindgren <tony@atomide.com>
Signed-off-by: NeilBrown <neil@brown.name>
Acked-by: Tony Lindgren <tony@atomide.com>
Signed-off-by: Sebastian Reichel <sre@kernel.org>
drivers/power/twl4030_charger.c