newport: newport_*wait() return 0 on timeout
PATCH 1/1 newport: newport_*wait() return 0 on timeout
With a postfix decrement t reaches -1 on timeout which results in a return of 0.
Signed-off-by Roel Kluin <[email protected]>
---
include/video/newport.h +2 -2
@@ -453,7 +453,7 @@ static __inline__ int newport_wait(struct newport_regs *regs) {int t =BUSY_TIMEOUT ; -while (t--) +while (--t)if (!(regs->cset.status &NPORT_STAT_GBUSY ))break ;return !t;
@@ -463,7 +463,7 @@ static __inline__ int newport_bfwait(struct newport_regs *regs) {int t =BUSY_TIMEOUT ; -while (t--) +while (--t)if (!(regs->cset.status &NPORT_STAT_BBUSY ))break ;return !t;
------------------------------------------------------------------------------
Create and Deploy Rich Internet Apps outside the browser with Adobe(R)AIR(TM) software. With Adobe AIR, Ajax developers can use existing skills and code to build responsive, highly engaging applications that combine the power of local resources and data with the reach of the web. Download the Adobe AIR SDK and Ajax docs to start building applications today-http://p.sf.net/sfu/adobe-com