mfd: Use completion interrupt for WM831x AUXADC
authorMark Brown <broonie@opensource.wolfsonmicro.com>
Tue, 23 Feb 2010 11:08:06 +0000 (11:08 +0000)
committerSamuel Ortiz <sameo@linux.intel.com>
Sun, 7 Mar 2010 21:17:34 +0000 (22:17 +0100)
commit473fe73650b9f92114edbedfbb616561c1a0026c
tree24e4a0ee61eb73b990055a6b0f427e430d4d5234
parentd19663ac61a6e36eec655d3c84a106686ebddd2c
mfd: Use completion interrupt for WM831x AUXADC

Use the completion interrupt generated by the device rather than
polling for conversions to complete. As a backup we still check
the status of the AUXADC if we don't get a completion, mostly for
systems that don't have the WM831x interrupt infrastructure hooked
up.

Also reduce the timeout for completion of conversions to 5ms from
the previous 10ms, the lower timeout should be sufficient.

Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
Signed-off-by: Samuel Ortiz <sameo@linux.intel.com>
drivers/mfd/wm831x-core.c
include/linux/mfd/wm831x/core.h