]> www.pilppa.org Git - linux-2.6-omap-h63xx.git/commit
twl4030-madc: Let the operation complete faster
authorAaro Koskinen <Aaro.Koskinen@nokia.com>
Fri, 20 Feb 2009 14:13:55 +0000 (14:13 +0000)
committerTony Lindgren <tony@atomide.com>
Fri, 27 Feb 2009 18:10:15 +0000 (10:10 -0800)
commitf9916174e0bf8489349947c1479739400940f9cb
treecaa9436feb56e3807b6e546832a4c1c7410c9f00
parent172195de53c497b4650a24d13d285b9c1c3bcb3f
twl4030-madc: Let the operation complete faster

No need to wait before the first read, as the operation is likely
completed already. For timeout 50 milliseconds is an overkill, poll the
register for the duration of 5 milliseconds at maximum.

Also, clear the active flag in case of timeout.

Signed-off-by: Aaro Koskinen <Aaro.Koskinen@nokia.com>
Signed-off-by: Tony Lindgren <tony@atomide.com>
drivers/i2c/chips/twl4030-madc.c