Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 280057
b: refs/heads/master
c: c9cbf55
h: refs/heads/master
i:
  280055: dab8852
v: v3
  • Loading branch information
Evgeniy Polyakov authored and Greg Kroah-Hartman committed Dec 10, 2011
1 parent f666dc8 commit 0f16b0e
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 1 deletion.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 74099b18b8db0670484e0caeb3425fb29ff3144e
refs/heads/master: c9cbf558e7793d312a4dd5d839ad7eae1aa8bd12
10 changes: 10 additions & 0 deletions trunk/drivers/w1/w1.c
Original file line number Diff line number Diff line change
Expand Up @@ -892,6 +892,16 @@ void w1_search(struct w1_master *dev, u8 search_type, w1_slave_found_callback cb
break;
}

/* Do fast search on single slave bus */
if (dev->max_slave_count == 1) {
w1_write_8(dev, W1_READ_ROM);

if (w1_read_block(dev, (u8 *)&rn, 8) == 8 && rn)
cb(dev, rn);

break;
}

/* Start the search */
w1_write_8(dev, search_type);
for (i = 0; i < 64; ++i) {
Expand Down

0 comments on commit 0f16b0e

Please sign in to comment.