lp8788-charger: Use consumer device name on setting IIO channels
authorKim, Milo <Milo.Kim@ti.com>
Thu, 18 Oct 2012 06:11:33 +0000 (06:11 +0000)
committerAnton Vorontsov <anton.vorontsov@linaro.org>
Sun, 18 Nov 2012 04:40:59 +0000 (20:40 -0800)
commit968a47836c7f9dc6a3987f846bb7e095d30b86ec
treea3e03713a028f786974a01d9ca8aa038b92b25bc
parent952aeeb3ee28bc12a70744e40636de40688eb60d
lp8788-charger: Use consumer device name on setting IIO channels

To get the ADC value for the battery voltage and temperature, LP8788 ADC
driver is used. LP8788 charger driver is the consumer of LP8788 ADC
driver. Thus, specific ADC driver name is required on getting the channel
using iio_channel_get().

Signed-off-by: Milo(Woogyom) Kim <milo.kim@ti.com>
Acked-by: Jonathan Cameron <jic23@kernel.org>
Signed-off-by: Anton Vorontsov <anton.vorontsov@linaro.org>
drivers/power/lp8788-charger.c