diff options
author | David Fries <david@fries.net> | 2008-10-16 07:05:10 +0200 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2008-10-16 20:21:51 +0200 |
commit | ade6d810b585d749db24d734947a30a29470cccd (patch) | |
tree | 516701655f96739293019705496201e432a27e84 /drivers/w1/masters/w1-gpio.c | |
parent | W1: Documentation/w1/masters/ds2490 update (diff) | |
download | linux-ade6d810b585d749db24d734947a30a29470cccd.tar.xz linux-ade6d810b585d749db24d734947a30a29470cccd.zip |
W1: ds2490.c optimize ds_set_pullup
Optimize the ds_set_pullup function. For a strong pullup to be sent the
ds2490 has to have both the strong pullup mode enabled, and the specific
write operation has to have the SPU bit enabled. Previously the write
always had the SPU bit enabled and both the duration and model was set
when a strong pullup was requested. Now the strong pullup mode is enabled
at initialization time, the delay is updated only when the value changes,
and the write SPU bit is set only when a strong pullup is required. This
removes two or three bus transactions per strong pullup request.
Signed-off-by: David Fries <david@fries.net>
Signed-off-by: Evgeniy Polyakov <johnpol@2ka.mipt.ru>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'drivers/w1/masters/w1-gpio.c')
0 files changed, 0 insertions, 0 deletions