summaryrefslogtreecommitdiffstats
path: root/include/linux/of.h
diff options
context:
space:
mode:
authorGrant Likely2008-07-26 04:25:13 +0200
committerGrant Likely2008-07-26 04:25:13 +0200
commit3f07af494dfa6de43137dae430431c9fbf929c0c (patch)
treeee204d7cb204fbe287f2626fdeb8926adc7d4889 /include/linux/of.h
parentMerge branch 'merge' of git://git.kernel.org/pub/scm/linux/kernel/git/benh/po... (diff)
downloadkernel-qcow2-linux-3f07af494dfa6de43137dae430431c9fbf929c0c.tar.gz
kernel-qcow2-linux-3f07af494dfa6de43137dae430431c9fbf929c0c.tar.xz
kernel-qcow2-linux-3f07af494dfa6de43137dae430431c9fbf929c0c.zip
of: adapt of_find_i2c_driver() to be usable by SPI also
SPI has a similar problem as I2C in that it needs to determine an appropriate modalias value for each device node. This patch adapts the of_i2c of_find_i2c_driver() function to be usable by of_spi also. Signed-off-by: Grant Likely <grant.likely@secretlab.ca>
Diffstat (limited to 'include/linux/of.h')
-rw-r--r--include/linux/of.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/include/linux/of.h b/include/linux/of.h
index 59a61bdc98b6..79886ade070f 100644
--- a/include/linux/of.h
+++ b/include/linux/of.h
@@ -70,5 +70,6 @@ extern int of_n_addr_cells(struct device_node *np);
extern int of_n_size_cells(struct device_node *np);
extern const struct of_device_id *of_match_node(
const struct of_device_id *matches, const struct device_node *node);
+extern int of_modalias_node(struct device_node *node, char *modalias, int len);
#endif /* _LINUX_OF_H */