]> git.proxmox.com Git - mirror_ubuntu-eoan-kernel.git/commit
w1: fix test in ds2482_wait_1wire_idle()
authorRoel Kluin <roel.kluin@gmail.com>
Wed, 10 Mar 2010 23:23:49 +0000 (15:23 -0800)
committerLinus Torvalds <torvalds@linux-foundation.org>
Fri, 12 Mar 2010 23:52:43 +0000 (15:52 -0800)
commit6786073927c3ff3eb7fc3d2192e761e86fa0d352
tree229745c49dfad6d410ed905b89aaa69bd62e2670
parent7ed63d5eb4c0de0321f5c0a7328e132a78f9fafe
w1: fix test in ds2482_wait_1wire_idle()

With `while (++retries < DS2482_WAIT_IDLE_TIMEOUT)' retries reaches
DS2482_WAIT_IDLE_TIMEOUT after the loop

Signed-off-by: Roel Kluin <roel.kluin@gmail.com>
Cc: Evgeniy Polyakov <johnpol@2ka.mipt.ru>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
drivers/w1/masters/ds2482.c