mfd: Turn on the twl4030-madc MADC clock
authorKyle Manna <kyle@kylemanna.com>
Fri, 12 Aug 2011 03:33:13 +0000 (22:33 -0500)
committerGreg Kroah-Hartman <gregkh@suse.de>
Fri, 6 Jan 2012 22:17:33 +0000 (14:17 -0800)
commitb7ef0c519dd78c3bbd2e9903675c2ec16e38831e
tree7667184145cfdcc2becd38fd449e4cf18f9b33f8
parentd5700ae8cfc1b3243ca9f96f6dd0bbf95b05b5e6
mfd: Turn on the twl4030-madc MADC clock

commit 3d6271f92e98094584fd1e609a9969cd33e61122 upstream.

Without turning the MADC clock on, no MADC conversions occur.

$ cat /sys/class/hwmon/hwmon0/device/in8_input
[   53.428436] twl4030_madc twl4030_madc: conversion timeout!
cat: read error: Resource temporarily unavailable

Signed-off-by: Kyle Manna <kyle@kylemanna.com>
Signed-off-by: Samuel Ortiz <sameo@linux.intel.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
drivers/mfd/twl4030-madc.c
include/linux/i2c/twl4030-madc.h