From: Evgeniy Polyakov Date: Tue, 8 May 2007 07:31:20 +0000 (-0700) Subject: w1: allow bus master to have reset and byte ops X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=c1f858b763de570a4ab119ade7b24ccbc8fad23a;p=GitHub%2Fmoto-9609%2Fandroid_kernel_motorola_exynos9610.git w1: allow bus master to have reset and byte ops Signed-off-by: Matt Reimer Signed-off-by: Evgeniy Polyakov Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds --- diff --git a/drivers/w1/w1_int.c b/drivers/w1/w1_int.c index 357a2e0f637a..258defdb2efd 100644 --- a/drivers/w1/w1_int.c +++ b/drivers/w1/w1_int.c @@ -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); }