Skip to content

Commit

Permalink
w1: allow bus master to have reset and byte ops
Browse files Browse the repository at this point in the history
Signed-off-by: Matt Reimer <mreimer@vpop.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>
  • Loading branch information
Evgeniy Polyakov authored and Linus Torvalds committed May 8, 2007
1 parent 60ed34b commit c1f858b
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion drivers/w1/w1_int.c
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,8 @@ int w1_add_master_device(struct w1_bus_master *master)

/* validate minimum functionality */
if (!(master->touch_bit && master->reset_bus) &&
!(master->write_bit && master->read_bit)) {
!(master->write_bit && master->read_bit) &&
!(master->write_byte && master->read_byte && master->reset_bus)) {
printk(KERN_ERR "w1_add_master_device: invalid function set\n");
return(-EINVAL);
}
Expand Down

0 comments on commit c1f858b

Please sign in to comment.