diff options
author | Herve Codina <herve.codina@bootlin.com> | 2024-07-01 14:30:35 +0300 |
---|---|---|
committer | Mark Brown <broonie@kernel.org> | 2024-07-04 14:24:59 +0300 |
commit | af8432b2e41abc0a20bdc01a3b144ea7b2f1ee09 (patch) | |
tree | c90e9f468639b43a4293a69fb439216f58d189cf /include/soc | |
parent | 37797c605da33445adc112561695f70bfaa11133 (diff) | |
download | linux-af8432b2e41abc0a20bdc01a3b144ea7b2f1ee09.tar.xz |
soc: fsl: cpm1: qmc: Introduce qmc_chan_count_phandles()
No function in the QMC API is available to get the number of phandles
present in a phandle list.
Fill this lack introducing qmc_chan_count_phandles().
Signed-off-by: Herve Codina <herve.codina@bootlin.com>
Link: https://patch.msgid.link/20240701113038.55144-9-herve.codina@bootlin.com
Signed-off-by: Mark Brown <broonie@kernel.org>
Diffstat (limited to 'include/soc')
-rw-r--r-- | include/soc/fsl/qe/qmc.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/include/soc/fsl/qe/qmc.h b/include/soc/fsl/qe/qmc.h index 0fa7205145ce..294e42ea8d4c 100644 --- a/include/soc/fsl/qe/qmc.h +++ b/include/soc/fsl/qe/qmc.h @@ -16,6 +16,8 @@ struct device_node; struct device; struct qmc_chan; +int qmc_chan_count_phandles(struct device_node *np, const char *phandles_name); + struct qmc_chan *qmc_chan_get_byphandles_index(struct device_node *np, const char *phandles_name, int index); |