diff options
author | David Fries <David@Fries.net> | 2014-01-15 23:29:15 -0500 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2014-02-07 18:40:17 -0500 |
commit | a16130569af7e92b0a68a8c96170d84756f91c47 (patch) | |
tree | 062e723bc478c110d86fde537a69d264d59b2476 /drivers/w1/w1.h | |
parent | af8c7237b082acefb996878a21a87017059b2c52 (diff) |
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>
Diffstat (limited to 'drivers/w1/w1.h')
-rw-r--r-- | drivers/w1/w1.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/w1/w1.h b/drivers/w1/w1.h index bc329d2bba28..bd10b3c2a406 100644 --- a/drivers/w1/w1.h +++ b/drivers/w1/w1.h | |||
@@ -158,9 +158,11 @@ struct w1_bus_master | |||
158 | /** | 158 | /** |
159 | * enum w1_master_flags - bitfields used in w1_master.flags | 159 | * enum w1_master_flags - bitfields used in w1_master.flags |
160 | * @W1_ABORT_SEARCH: abort searching early on shutdown | 160 | * @W1_ABORT_SEARCH: abort searching early on shutdown |
161 | * @W1_WARN_MAX_COUNT: limit warning when the maximum count is reached | ||
161 | */ | 162 | */ |
162 | enum w1_master_flags { | 163 | enum w1_master_flags { |
163 | W1_ABORT_SEARCH = 0, | 164 | W1_ABORT_SEARCH = 0, |
165 | W1_WARN_MAX_COUNT = 1, | ||
164 | }; | 166 | }; |
165 | 167 | ||
166 | struct w1_master | 168 | struct w1_master |