drivers: power: twl4030_charger: fix link problems when building as module
authorMarek Belisko <marek@goldelico.com>
Fri, 25 Sep 2015 20:20:45 +0000 (22:20 +0200)
committerSebastian Reichel <sre@kernel.org>
Sat, 26 Sep 2015 17:10:09 +0000 (19:10 +0200)
commit2202e1fc5a29eab13fab31d287dd2019dc9edaa6
tree15f4109443ee7beb4bce172e50668a68480b1caa
parentaf19161aaed7ff8d1a52b2e517460f2fa0774e32
drivers: power: twl4030_charger: fix link problems when building as module

If either twl4030_charger or twl4030_madc is configured as MODULE,
we get build (link) errors.

To solve, the direct call of twl4030_get_madc_conversion() is replaced
by a call to iio_read_channel_processed().

Signed-off-by: H. Nikolaus Schaller <hns@goldelico.com>
Signed-off-by: Marek Belisko <marek@goldelico.com>
Signed-off-by: Sebastian Reichel <sre@kernel.org>
drivers/power/twl4030_charger.c