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: NTony Lindgren <tony@atomide.com> Signed-off-by: NNeilBrown <neil@brown.name> Acked-by: NTony Lindgren <tony@atomide.com> Signed-off-by: NSebastian Reichel <sre@kernel.org>
Showing
想要评论请 注册 或 登录