]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commite3f3c3b9935da002f3714dce8b46911682de58b1
tree24e4a0ee61eb73b990055a6b0f427e430d4d5234
parenteef13d8a4036ae959546b2412e878cc7bacbacde
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