Commit e45f1c1d authored by Georgi Djakov's avatar Georgi Djakov

interconnect: Add stubs for the bulk API

Add stub functions for the bulk API to allow compile testing.
Reviewed-by: default avatarAlex Elder <elder@linaro.org>
Link: https://lore.kernel.org/r/20220301090735.26599-1-djakov@kernel.orgSigned-off-by: default avatarGeorgi Djakov <djakov@kernel.org>
parent 9d6c7ee7
...@@ -38,13 +38,6 @@ struct icc_bulk_data { ...@@ -38,13 +38,6 @@ struct icc_bulk_data {
u32 peak_bw; u32 peak_bw;
}; };
int __must_check of_icc_bulk_get(struct device *dev, int num_paths,
struct icc_bulk_data *paths);
void icc_bulk_put(int num_paths, struct icc_bulk_data *paths);
int icc_bulk_set_bw(int num_paths, const struct icc_bulk_data *paths);
int icc_bulk_enable(int num_paths, const struct icc_bulk_data *paths);
void icc_bulk_disable(int num_paths, const struct icc_bulk_data *paths);
#if IS_ENABLED(CONFIG_INTERCONNECT) #if IS_ENABLED(CONFIG_INTERCONNECT)
struct icc_path *icc_get(struct device *dev, const int src_id, struct icc_path *icc_get(struct device *dev, const int src_id,
...@@ -58,6 +51,12 @@ int icc_disable(struct icc_path *path); ...@@ -58,6 +51,12 @@ int icc_disable(struct icc_path *path);
int icc_set_bw(struct icc_path *path, u32 avg_bw, u32 peak_bw); int icc_set_bw(struct icc_path *path, u32 avg_bw, u32 peak_bw);
void icc_set_tag(struct icc_path *path, u32 tag); void icc_set_tag(struct icc_path *path, u32 tag);
const char *icc_get_name(struct icc_path *path); const char *icc_get_name(struct icc_path *path);
int __must_check of_icc_bulk_get(struct device *dev, int num_paths,
struct icc_bulk_data *paths);
void icc_bulk_put(int num_paths, struct icc_bulk_data *paths);
int icc_bulk_set_bw(int num_paths, const struct icc_bulk_data *paths);
int icc_bulk_enable(int num_paths, const struct icc_bulk_data *paths);
void icc_bulk_disable(int num_paths, const struct icc_bulk_data *paths);
#else #else
...@@ -112,6 +111,29 @@ static inline const char *icc_get_name(struct icc_path *path) ...@@ -112,6 +111,29 @@ static inline const char *icc_get_name(struct icc_path *path)
return NULL; return NULL;
} }
static inline int 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)
{
}
static inline int icc_bulk_set_bw(int num_paths, const struct icc_bulk_data *paths)
{
return 0;
}
static inline int icc_bulk_enable(int num_paths, const struct icc_bulk_data *paths)
{
return 0;
}
static inline void icc_bulk_disable(int num_paths, const struct icc_bulk_data *paths)
{
}
#endif /* CONFIG_INTERCONNECT */ #endif /* CONFIG_INTERCONNECT */
#endif /* __LINUX_INTERCONNECT_H */ #endif /* __LINUX_INTERCONNECT_H */
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment