diff options
author | David Fries <David@Fries.net> | 2011-05-26 19:26:03 -0400 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2011-05-26 20:12:38 -0400 |
commit | 963bb101010169b9bb32b5c21af785e2f9abdaf3 (patch) | |
tree | 8e5d4cfae208bf5ac1044994291e7cde9570362a /drivers/w1/w1.h | |
parent | 26a6afb917a8e3eb603358be1238a69e8a16d0ee (diff) |
w1: have netlink search update kernel list
Reorganize so the netlink connector one wire search command will update
the kernel list of detected slave devices. Otherwise, a newly detected
device is unusable because unless it's in the kernel list of known devices
any commands will result in ENODEV status.
Signed-off-by: David Fries <David@Fries.net>
Cc: Evgeniy Polyakov <johnpol@2ka.mipt.ru>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'drivers/w1/w1.h')
-rw-r--r-- | drivers/w1/w1.h | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/drivers/w1/w1.h b/drivers/w1/w1.h index f804eba89b7b..1ce23fc6186c 100644 --- a/drivers/w1/w1.h +++ b/drivers/w1/w1.h | |||
@@ -194,7 +194,9 @@ void w1_destroy_master_attributes(struct w1_master *master); | |||
194 | void w1_search(struct w1_master *dev, u8 search_type, w1_slave_found_callback cb); | 194 | void w1_search(struct w1_master *dev, u8 search_type, w1_slave_found_callback cb); |
195 | void w1_search_devices(struct w1_master *dev, u8 search_type, w1_slave_found_callback cb); | 195 | void w1_search_devices(struct w1_master *dev, u8 search_type, w1_slave_found_callback cb); |
196 | struct w1_slave *w1_search_slave(struct w1_reg_num *id); | 196 | struct w1_slave *w1_search_slave(struct w1_reg_num *id); |
197 | void w1_search_process(struct w1_master *dev, u8 search_type); | 197 | void w1_slave_found(struct w1_master *dev, u64 rn); |
198 | void w1_search_process_cb(struct w1_master *dev, u8 search_type, | ||
199 | w1_slave_found_callback cb); | ||
198 | struct w1_master *w1_search_master_id(u32 id); | 200 | struct w1_master *w1_search_master_id(u32 id); |
199 | 201 | ||
200 | /* Disconnect and reconnect devices in the given family. Used for finding | 202 | /* Disconnect and reconnect devices in the given family. Used for finding |