summaryrefslogtreecommitdiffstats
path: root/include/driver.h
diff options
context:
space:
mode:
authorSascha Hauer <s.hauer@pengutronix.de>2014-02-07 09:27:59 +0100
committerSascha Hauer <s.hauer@pengutronix.de>2014-02-07 09:28:02 +0100
commit394edf6377ca604402293d74b31694b171923945 (patch)
tree10becc46a2620c580aa4c7a948c9053ac05a20a4 /include/driver.h
parent4f2f9150b748f278a02c7874e9fc3fd026082581 (diff)
downloadbarebox-394edf6377ca604402293d74b31694b171923945.tar.gz
barebox-394edf6377ca604402293d74b31694b171923945.tar.xz
i2c/spi: match of_modaliases
i2c/spi devices in the devicetree often come with a "vendor,device" comaptible string. These do not match in barebox, so add a device_match_of_modalias function which does exactly that. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Diffstat (limited to 'include/driver.h')
-rw-r--r--include/driver.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/include/driver.h b/include/driver.h
index bbe789b51e..cbb040170c 100644
--- a/include/driver.h
+++ b/include/driver.h
@@ -496,5 +496,6 @@ int devfs_del_partition(const char *name);
int dev_get_drvdata(struct device_d *dev, unsigned long *data);
-#endif /* DRIVER_H */
+int device_match_of_modalias(struct device_d *dev, struct driver_d *drv);
+#endif /* DRIVER_H */