summaryrefslogtreecommitdiffstats
path: root/include/linux/i3c
diff options
context:
space:
mode:
authorVitor Soares <Vitor.Soares@synopsys.com>2019-07-19 15:30:54 +0200
committerBoris Brezillon <boris.brezillon@collabora.com>2019-07-27 11:22:19 +0200
commit934d24a5e1508e73c0001afb54a3916e4270428f (patch)
tree6d0ea86ce4114ad395d6d4cf7d3e9c62938e9310 /include/linux/i3c
parent5f9e832c137075045d15cd6899ab0505cfb2ca4b (diff)
downloadlinux-934d24a5e1508e73c0001afb54a3916e4270428f.tar.gz
linux-934d24a5e1508e73c0001afb54a3916e4270428f.tar.bz2
linux-934d24a5e1508e73c0001afb54a3916e4270428f.zip
i3c: move i3c_device_match_id to device.c and export it
Some I3C device drivers need to know which entry matches the i3c_device object passed to the probe function Let's move i3c_device_match_id() to device.c and export it so it can be used by drivers. Signed-off-by: Vitor Soares <vitor.soares@synopsys.com> Signed-off-by: Boris Brezillon <boris.brezillon@collabora.com>
Diffstat (limited to 'include/linux/i3c')
-rw-r--r--include/linux/i3c/device.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/include/linux/i3c/device.h b/include/linux/i3c/device.h
index 5ecb055fd375..de102e4418ab 100644
--- a/include/linux/i3c/device.h
+++ b/include/linux/i3c/device.h
@@ -188,6 +188,10 @@ static inline struct i3c_driver *drv_to_i3cdrv(struct device_driver *drv)
struct device *i3cdev_to_dev(struct i3c_device *i3cdev);
struct i3c_device *dev_to_i3cdev(struct device *dev);
+const struct i3c_device_id *
+i3c_device_match_id(struct i3c_device *i3cdev,
+ const struct i3c_device_id *id_table);
+
static inline void i3cdev_set_drvdata(struct i3c_device *i3cdev,
void *data)
{