diff options
author | Evgeniy Polyakov | 2005-06-04 01:29:25 +0400 |
---|---|---|
committer | Greg Kroah-Hartman | 2005-06-21 21:43:12 -0700 |
commit | 6adf87bd7b7832105b9c6bc08adf6a4d229f1e79 (patch) | |
tree | 1c6d17df3c4f4d753021e970a7bb898c1aabeb82 /drivers/w1/ds_w1_bridge.c | |
parent | 4754639d88e922af451b399af09ac1bb442c35e5 (diff) |
[PATCH] w1: reconnect feature.
I've created reconnect feature - if on start there are no registered families
all new devices will have defailt family, later when driver for appropriate
family is loaded, slaves, which were faound earlier, will still have defult
family instead of right one. Reconnect feature will force control thread to run
through all master devices and all slaves found and search for slaves with
default family id and try to reconnect them.
It does not store newly registered family and does not check only those slaves
which have reg_num.family the same as being registered one - all slaves with
default family are reconnected.
Signed-off-by: Evgeniy Polyakov <johnpol@2ka.mipt.ru>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
Diffstat (limited to 'drivers/w1/ds_w1_bridge.c')
-rw-r--r-- | drivers/w1/ds_w1_bridge.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/w1/ds_w1_bridge.c b/drivers/w1/ds_w1_bridge.c index 0baaeb5fd630..7bddd8ac7d7f 100644 --- a/drivers/w1/ds_w1_bridge.c +++ b/drivers/w1/ds_w1_bridge.c @@ -83,11 +83,11 @@ static u8 ds9490r_read_byte(unsigned long data) return byte; } -static void ds9490r_write_block(unsigned long data, u8 *buf, int len) +static void ds9490r_write_block(unsigned long data, const u8 *buf, int len) { struct ds_device *dev = (struct ds_device *)data; - ds_write_block(dev, buf, len); + ds_write_block(dev, (u8 *)buf, len); } static u8 ds9490r_read_block(unsigned long data, u8 *buf, int len) |