]> git.baikalelectronics.ru Git - kernel.git/commit
w1: increase w1_max_slave_count, allow write access
authorDavid Fries <David@Fries.net>
Thu, 16 Jan 2014 04:29:15 +0000 (22:29 -0600)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 7 Feb 2014 23:40:17 +0000 (15:40 -0800)
commitf7948cad80a76f98831b04a3c2b733b6da152568
tree062e723bc478c110d86fde537a69d264d59b2476
parentece16d6dc36f87cb120524e77aaa0be6e1dc5c36
w1: increase w1_max_slave_count, allow write access

w1_max_slave_count is only used to abort the search early
or take a fast search (when 1), so there isn't any reason to not allow
it to be updated through sysfs.  Memory is not allocated based on
the current value and 10 is a rather low base number, increasing to
64, and printing a message the first time the count is reached and
there were more devices to discover to let the user know why not
all the devices were found.

Signed-off-by: David Fries <David@Fries.net>
Acked-by: Evgeniy Polyakov <zbr@ioremap.net>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/w1/w1.c
drivers/w1/w1.h