summaryrefslogtreecommitdiffstats
path: root/drivers/w1/w1_family.h
diff options
context:
space:
mode:
authorGreg Kroah-Hartman <gregkh@linuxfoundation.org>2013-08-22 00:44:55 +0200
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2013-08-22 20:05:42 +0200
commit36c27a655a531f16b5567066600f0ea7fcb973b4 (patch)
tree70ba9e1c4ca5c0b02fb9ab94f3fa54fdca040ccb /drivers/w1/w1_family.h
parentw1: use default attribute groups for w1 slave devices (diff)
downloadlinux-36c27a655a531f16b5567066600f0ea7fcb973b4.tar.xz
linux-36c27a655a531f16b5567066600f0ea7fcb973b4.zip
w1: add attribute groups to struct w1_family_ops
This lets w1 slave drivers declare an attribute group, and not have to create/destroy sysfs files directly. All w1 slave drivers will be fixed to use this field up in follow-on patches to this one. Acked-by: Evgeniy Polyakov <zbr@ioremap.net> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/w1/w1_family.h')
-rw-r--r--drivers/w1/w1_family.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/w1/w1_family.h b/drivers/w1/w1_family.h
index 625dd08f775f..4ad0e81b6404 100644
--- a/drivers/w1/w1_family.h
+++ b/drivers/w1/w1_family.h
@@ -52,6 +52,7 @@ struct w1_family_ops
{
int (* add_slave)(struct w1_slave *);
void (* remove_slave)(struct w1_slave *);
+ const struct attribute_group **groups;
};
struct w1_family