diff options
author | Georgi Djakov <djakov@kernel.org> | 2023-10-10 14:11:07 +0300 |
---|---|---|
committer | Georgi Djakov <djakov@kernel.org> | 2023-10-10 14:11:07 +0300 |
commit | 9330bf741fdac78c398a866f979fd29fea435a88 (patch) | |
tree | b622ed8abd1a6a19b47b33026bea97869ceaf499 /drivers/interconnect/imx/imx.h | |
parent | bd35cbd7212200c1b1ed38d5fb5b43a8c9692153 (diff) | |
parent | 4d8784d84e17529f0f0774d3a946fd07057cd9a4 (diff) | |
download | linux-9330bf741fdac78c398a866f979fd29fea435a88.tar.xz |
Merge branch 'icc-misc' into icc-next
* icc-misc
interconnect: imx: Replace custom implementation of COUNT_ARGS()
interconnect: msm8974: Replace custom implementation of COUNT_ARGS()
interconnect: qcom: osm-l3: Replace custom implementation of COUNT_ARGS()
interconnect: fix error handling in qnoc_probe()
interconnect: imx: Replace inclusion of kernel.h in the header
dt-bindings: interconnect: qcom,rpmh: do not require reg on SDX65 MC virt
Signed-off-by: Georgi Djakov <djakov@kernel.org>
Diffstat (limited to 'drivers/interconnect/imx/imx.h')
-rw-r--r-- | drivers/interconnect/imx/imx.h | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/drivers/interconnect/imx/imx.h b/drivers/interconnect/imx/imx.h index 895907cdcb3b..d4d0e9888655 100644 --- a/drivers/interconnect/imx/imx.h +++ b/drivers/interconnect/imx/imx.h @@ -10,8 +10,13 @@ #ifndef __DRIVERS_INTERCONNECT_IMX_H #define __DRIVERS_INTERCONNECT_IMX_H +#include <linux/args.h> +#include <linux/bits.h> +#include <linux/types.h> + #include <linux/interconnect-provider.h> -#include <linux/kernel.h> + +struct platform_device; #define IMX_ICC_MAX_LINKS 4 @@ -89,7 +94,7 @@ struct imx_icc_noc_setting { .id = _id, \ .name = _name, \ .adj = _adj, \ - .num_links = ARRAY_SIZE(((int[]){ __VA_ARGS__ })), \ + .num_links = COUNT_ARGS(__VA_ARGS__), \ .links = { __VA_ARGS__ }, \ } |