summaryrefslogtreecommitdiffstats
path: root/drivers/w1/w1_family.h
diff options
context:
space:
mode:
authorEvgeniy Polyakov <johnpol@2ka.mipt.ru>2005-08-11 15:27:50 +0200
committerGreg Kroah-Hartman <gregkh@suse.de>2005-09-08 23:41:26 +0200
commitd2a4ef6a0ce4d841293b49bf2cdc17a0ebfaaf9d (patch)
tree2d49373e06fd65aae5217aad864fafb849c8cda2 /drivers/w1/w1_family.h
parent[PATCH] w1: Added w1_reset_select_slave() - Resets the bus and then selects t... (diff)
downloadlinux-d2a4ef6a0ce4d841293b49bf2cdc17a0ebfaaf9d.tar.xz
linux-d2a4ef6a0ce4d841293b49bf2cdc17a0ebfaaf9d.zip
[PATCH] w1: Added add/remove slave callbacks.
Patch is based on work from Ben Gardner <bgardner@wabtec.com> Signed-off-by: Evgeniy Polyakov <johnpol@2ka.mipt.ru> Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
Diffstat (limited to 'drivers/w1/w1_family.h')
-rw-r--r--drivers/w1/w1_family.h6
1 files changed, 4 insertions, 2 deletions
diff --git a/drivers/w1/w1_family.h b/drivers/w1/w1_family.h
index b26da01bbc38..0a564a0a69a0 100644
--- a/drivers/w1/w1_family.h
+++ b/drivers/w1/w1_family.h
@@ -35,10 +35,12 @@
#define MAXNAMELEN 32
+struct w1_slave;
+
struct w1_family_ops
{
- ssize_t (* rname)(struct device *, struct device_attribute *, char *);
- ssize_t (* rbin)(struct kobject *, char *, loff_t, size_t);
+ int (* add_slave)(struct w1_slave *);
+ void (* remove_slave)(struct w1_slave *);
};
struct w1_family