aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/include/linux/interconnect.h
diff options
context:
space:
mode:
authorPeng Fan <peng.fan@nxp.com>2022-07-03 17:11:25 +0800
committerGeorgi Djakov <djakov@kernel.org>2022-07-04 16:14:29 +0300
commit2fcfa72fc13f0203bb676bd1ec30ec85e17855be (patch)
treece95940724ff07c5b90d161b3a21425c4bd609fb /include/linux/interconnect.h
parentdt-bindings: interconnect: add fsl,imx8mp.h (diff)
downloadwireguard-linux-2fcfa72fc13f0203bb676bd1ec30ec85e17855be.tar.xz
wireguard-linux-2fcfa72fc13f0203bb676bd1ec30ec85e17855be.zip
interconnect: add device managed bulk API
Add device managed bulk API to simplify driver. Signed-off-by: Peng Fan <peng.fan@nxp.com> Link: https://lore.kernel.org/r/20220703091132.1412063-4-peng.fan@oss.nxp.com Signed-off-by: Georgi Djakov <djakov@kernel.org>
Diffstat (limited to 'include/linux/interconnect.h')
-rw-r--r--include/linux/interconnect.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/include/linux/interconnect.h b/include/linux/interconnect.h
index f685777b875e..2b0e784ba771 100644
--- a/include/linux/interconnect.h
+++ b/include/linux/interconnect.h
@@ -44,6 +44,7 @@ struct icc_path *icc_get(struct device *dev, const int src_id,
const int dst_id);
struct icc_path *of_icc_get(struct device *dev, const char *name);
struct icc_path *devm_of_icc_get(struct device *dev, const char *name);
+int devm_of_icc_bulk_get(struct device *dev, int num_paths, struct icc_bulk_data *paths);
struct icc_path *of_icc_get_by_index(struct device *dev, int idx);
void icc_put(struct icc_path *path);
int icc_enable(struct icc_path *path);
@@ -116,6 +117,12 @@ static inline int of_icc_bulk_get(struct device *dev, int num_paths, struct icc_
return 0;
}
+static inline int devm_of_icc_bulk_get(struct device *dev, int num_paths,
+ struct icc_bulk_data *paths)
+{
+ return 0;
+}
+
static inline void icc_bulk_put(int num_paths, struct icc_bulk_data *paths)
{
}