History

Merge branch 'icc-get-by-index' into icc-next

This is an immutable branch shared with the OPP tree. It contains also the patches to convert the interconnect framework from tristate to bool after Greg agreed with that. This will make the integration between the OPP layer and interconnect much easier. * icc-get-by-index: interconnect: Add of_icc_get_by_index() helper function interconnect: Disallow interconnect core to be built as a module interconnect: Remove unused module exit code from core

Georgi Djakov committed 6 years ago

Commit b35da2e2 parents 7d374b2 8fd35743 files · +62 −25Browse files

Showing the changes to include/linux (1 of 3 files). Show all

Unified · Split

include/linux/interconnect.h+6−0
@@ -29,6 +29,7 @@ struct icc_path *icc_get(struct device *dev, const int src_id, · 28 unmodified lines
2929 const int dst_id);
3030 struct icc_path *of_icc_get(struct device *dev, const char *name);
3131 struct icc_path *devm_of_icc_get(struct device *dev, const char *name);
32+struct icc_path *of_icc_get_by_index(struct device *dev, int idx);
3233 void icc_put(struct icc_path *path);
3334 int icc_enable(struct icc_path *path);
3435 int icc_disable(struct icc_path *path);
@@ -55,6 +56,11 @@ static inline struct icc_path *devm_of_icc_get(struct device *dev, · 20 unmodified lines
5556 return NULL;
5657 }
5758
59+static inline struct icc_path *of_icc_get_by_index(struct device *dev, int idx)
60+{
61+ return NULL;
62+}
63+
5864 static inline void icc_put(struct icc_path *path)
5965 {
6066 }