Skip to content

Commit 577a3c5

Browse files
andy-shevGeorgi Djakov
authored andcommitted
interconnect: qcom: osm-l3: Replace custom implementation of COUNT_ARGS()
Replace custom and non-portable implementation of COUNT_ARGS(). Fixes: 5bc9900 ("interconnect: qcom: Add OSM L3 interconnect provider support") Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com> Link: https://lore.kernel.org/r/20230920154927.2090732-1-andriy.shevchenko@linux.intel.com Signed-off-by: Georgi Djakov <djakov@kernel.org>
1 parent e753741 commit 577a3c5

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

drivers/interconnect/qcom/osm-l3.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
* Copyright (c) 2020-2021, The Linux Foundation. All rights reserved.
44
*/
55

6+
#include <linux/args.h>
67
#include <linux/bitfield.h>
78
#include <linux/clk.h>
89
#include <linux/interconnect-provider.h>
@@ -78,7 +79,7 @@ enum {
7879
.name = #_name, \
7980
.id = _id, \
8081
.buswidth = _buswidth, \
81-
.num_links = ARRAY_SIZE(((int[]){ __VA_ARGS__ })), \
82+
.num_links = COUNT_ARGS(__VA_ARGS__), \
8283
.links = { __VA_ARGS__ }, \
8384
}
8485

0 commit comments

Comments
 (0)