Skip to content

Commit a10b384

Browse files
rddunlapmmind
authored andcommitted
soc: rockchip: dtpm: use C99 array init syntax
Eliminate sparse warnings in soc/rockchip/dtpm.c: drivers/soc/rockchip/dtpm.c:15:12: sparse: warning: obsolete array initializer, use C99 syntax drivers/soc/rockchip/dtpm.c:17:12: sparse: warning: obsolete array initializer, use C99 syntax drivers/soc/rockchip/dtpm.c:20:12: sparse: warning: obsolete array initializer, use C99 syntax drivers/soc/rockchip/dtpm.c:23:12: sparse: warning: obsolete array initializer, use C99 syntax drivers/soc/rockchip/dtpm.c:26:12: sparse: warning: obsolete array initializer, use C99 syntax drivers/soc/rockchip/dtpm.c:29:12: sparse: warning: obsolete array initializer, use C99 syntax drivers/soc/rockchip/dtpm.c:32:12: sparse: warning: obsolete array initializer, use C99 syntax drivers/soc/rockchip/dtpm.c:35:12: sparse: warning: obsolete array initializer, use C99 syntax drivers/soc/rockchip/dtpm.c:38:12: sparse: warning: obsolete array initializer, use C99 syntax drivers/soc/rockchip/dtpm.c:41:12: sparse: warning: obsolete array initializer, use C99 syntax Fixes: b9d6c47 ("rockchip/soc/drivers: Add DTPM description for rk3399") Signed-off-by: Randy Dunlap <rdunlap@infradead.org> Cc: Daniel Lezcano <daniel.lezcano@linaro.org> Cc: Heiko Stuebner <heiko@sntech.de> Cc: linux-rockchip@lists.infradead.org Acked-by: Daniel Lezcano <daniel.lezcano@linaro.org> Link: https://lore.kernel.org/r/20230501024950.31518-1-rdunlap@infradead.org Signed-off-by: Heiko Stuebner <heiko@sntech.de>
1 parent ea85370 commit a10b384

1 file changed

Lines changed: 27 additions & 27 deletions

File tree

drivers/soc/rockchip/dtpm.c

Lines changed: 27 additions & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -12,33 +12,33 @@
1212
#include <linux/platform_device.h>
1313

1414
static struct dtpm_node __initdata rk3399_hierarchy[] = {
15-
[0]{ .name = "rk3399",
16-
.type = DTPM_NODE_VIRTUAL },
17-
[1]{ .name = "package",
18-
.type = DTPM_NODE_VIRTUAL,
19-
.parent = &rk3399_hierarchy[0] },
20-
[2]{ .name = "/cpus/cpu@0",
21-
.type = DTPM_NODE_DT,
22-
.parent = &rk3399_hierarchy[1] },
23-
[3]{ .name = "/cpus/cpu@1",
24-
.type = DTPM_NODE_DT,
25-
.parent = &rk3399_hierarchy[1] },
26-
[4]{ .name = "/cpus/cpu@2",
27-
.type = DTPM_NODE_DT,
28-
.parent = &rk3399_hierarchy[1] },
29-
[5]{ .name = "/cpus/cpu@3",
30-
.type = DTPM_NODE_DT,
31-
.parent = &rk3399_hierarchy[1] },
32-
[6]{ .name = "/cpus/cpu@100",
33-
.type = DTPM_NODE_DT,
34-
.parent = &rk3399_hierarchy[1] },
35-
[7]{ .name = "/cpus/cpu@101",
36-
.type = DTPM_NODE_DT,
37-
.parent = &rk3399_hierarchy[1] },
38-
[8]{ .name = "/gpu@ff9a0000",
39-
.type = DTPM_NODE_DT,
40-
.parent = &rk3399_hierarchy[1] },
41-
[9]{ /* sentinel */ }
15+
[0] = { .name = "rk3399",
16+
.type = DTPM_NODE_VIRTUAL },
17+
[1] = { .name = "package",
18+
.type = DTPM_NODE_VIRTUAL,
19+
.parent = &rk3399_hierarchy[0] },
20+
[2] = { .name = "/cpus/cpu@0",
21+
.type = DTPM_NODE_DT,
22+
.parent = &rk3399_hierarchy[1] },
23+
[3] = { .name = "/cpus/cpu@1",
24+
.type = DTPM_NODE_DT,
25+
.parent = &rk3399_hierarchy[1] },
26+
[4] = { .name = "/cpus/cpu@2",
27+
.type = DTPM_NODE_DT,
28+
.parent = &rk3399_hierarchy[1] },
29+
[5] = { .name = "/cpus/cpu@3",
30+
.type = DTPM_NODE_DT,
31+
.parent = &rk3399_hierarchy[1] },
32+
[6] = { .name = "/cpus/cpu@100",
33+
.type = DTPM_NODE_DT,
34+
.parent = &rk3399_hierarchy[1] },
35+
[7] = { .name = "/cpus/cpu@101",
36+
.type = DTPM_NODE_DT,
37+
.parent = &rk3399_hierarchy[1] },
38+
[8] = { .name = "/gpu@ff9a0000",
39+
.type = DTPM_NODE_DT,
40+
.parent = &rk3399_hierarchy[1] },
41+
[9] = { /* sentinel */ }
4242
};
4343

4444
static struct of_device_id __initdata rockchip_dtpm_match_table[] = {

0 commit comments

Comments
 (0)