diff options
author | Ioana Ciornei <ioana.ciornei@nxp.com> | 2021-08-03 19:57:42 +0300 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2021-08-04 09:53:34 +0100 |
commit | 27cfdadd687deca58146b415f60b23d185cb3532 (patch) | |
tree | bddf1d15b21b8e36459bf8ca3f60844f5eaad188 /include/linux/fsl/mc.h | |
parent | 2b24ffd83e3953e6ff7a67ca1c8f7832598b1bf0 (diff) |
bus: fsl-mc: extend fsl_mc_get_endpoint() to pass interface ID
In case of a switch DPAA2 object, the interface ID is also needed when
querying for the object endpoint. Extend fsl_mc_get_endpoint() so that
users can also pass the interface ID that are interested in.
Signed-off-by: Ioana Ciornei <ioana.ciornei@nxp.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'include/linux/fsl/mc.h')
-rw-r--r-- | include/linux/fsl/mc.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/include/linux/fsl/mc.h b/include/linux/fsl/mc.h index 63b56aba925a..30ece3ae6df7 100644 --- a/include/linux/fsl/mc.h +++ b/include/linux/fsl/mc.h @@ -423,7 +423,8 @@ int __must_check fsl_mc_allocate_irqs(struct fsl_mc_device *mc_dev); void fsl_mc_free_irqs(struct fsl_mc_device *mc_dev); -struct fsl_mc_device *fsl_mc_get_endpoint(struct fsl_mc_device *mc_dev); +struct fsl_mc_device *fsl_mc_get_endpoint(struct fsl_mc_device *mc_dev, + u16 if_id); extern struct bus_type fsl_mc_bus_type; |