summaryrefslogtreecommitdiff
path: root/include/linux/w1.h
diff options
context:
space:
mode:
authorDaniel Mack <daniel@zonque.org>2018-07-06 08:35:50 +0300
committerSebastian Reichel <sre@kernel.org>2018-07-11 19:09:08 +0300
commitfae68031f7fbc8b6db58d87830ba7ed1d696fbb1 (patch)
tree6a9486a69b5802af55406fb6269230acdeeaaa1c /include/linux/w1.h
parentda0a5d99b14ced8ec4bf741f5d2457348b932c82 (diff)
downloadlinux-fae68031f7fbc8b6db58d87830ba7ed1d696fbb1.tar.xz
w1: core: match sub-nodes of bus masters in devicetree
Once a new slave device is detected, match it against all sub-nodes of the master bus controller. If a match is found, set the slave device's of_node pointer. Signed-off-by: Daniel Mack <daniel@zonque.org> Signed-off-by: Sebastian Reichel <sebastian.reichel@collabora.co.uk>
Diffstat (limited to 'include/linux/w1.h')
-rw-r--r--include/linux/w1.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/include/linux/w1.h b/include/linux/w1.h
index 694101f744c7..3111585c371f 100644
--- a/include/linux/w1.h
+++ b/include/linux/w1.h
@@ -274,6 +274,8 @@ struct w1_family {
struct w1_family_ops *fops;
+ const struct of_device_id *of_match_table;
+
atomic_t refcnt;
};