diff options
author | Chris Kay <chris.kay@arm.com> | 2018-08-08 12:05:11 +0100 |
---|---|---|
committer | ronald-cron-arm <39518861+ronald-cron-arm@users.noreply.github.com> | 2018-08-23 17:51:01 +0200 |
commit | 41f3aa73a4dbea34657e45163753ec3e3edd3f69 (patch) | |
tree | f20ce513ebaf9a9d16ace80b9f9d78cacd837b03 /product/sgm775 | |
parent | 3687a4f4ffa6ddb792767f53a5e62984eaf05f23 (diff) |
misc: Fix `ISO C forbids empty initializer braces` errors
Change-Id: Ieebd946caf9be40018e87109f7b35ac904203e42
Signed-off-by: Chris Kay <chris.kay@arm.com>
Diffstat (limited to 'product/sgm775')
29 files changed, 35 insertions, 35 deletions
diff --git a/product/sgm775/module/sgm775_system/src/mod_sgm775_system.c b/product/sgm775/module/sgm775_system/src/mod_sgm775_system.c index dc1459e4..136feed2 100644 --- a/product/sgm775/module/sgm775_system/src/mod_sgm775_system.c +++ b/product/sgm775/module/sgm775_system/src/mod_sgm775_system.c @@ -56,4 +56,4 @@ const struct fwk_module module_sgm775_system = { }; /* No elements, no module configuration data */ -struct fwk_module_config config_sgm775_system = {}; +struct fwk_module_config config_sgm775_system = { 0 }; diff --git a/product/sgm775/scp_ramfw/config_clock.c b/product/sgm775/scp_ramfw/config_clock.c index 3728fb79..2b40bd85 100644 --- a/product/sgm775/scp_ramfw/config_clock.c +++ b/product/sgm775/scp_ramfw/config_clock.c @@ -83,7 +83,7 @@ static struct fwk_element clock_dev_desc_table[] = { MOD_PIK_CLOCK_API_TYPE_CLOCK), }), }, - [CLOCK_DEV_IDX_COUNT] = { }, /* Termination description. */ + [CLOCK_DEV_IDX_COUNT] = { 0 }, /* Termination description. */ }; static const struct fwk_element *clock_get_dev_desc_table(fwk_id_t module_id) diff --git a/product/sgm775/scp_ramfw/config_css_clock.c b/product/sgm775/scp_ramfw/config_css_clock.c index 18d50233..1bda7489 100644 --- a/product/sgm775/scp_ramfw/config_css_clock.c +++ b/product/sgm775/scp_ramfw/config_css_clock.c @@ -287,7 +287,7 @@ static const struct fwk_element css_clock_element_table[] = { .modulation_supported = false, }), }, - { }, /* Termination description. */ + { 0 }, /* Termination description. */ }; static const struct fwk_element *css_clock_get_element_table diff --git a/product/sgm775/scp_ramfw/config_ddr_phy500.c b/product/sgm775/scp_ramfw/config_ddr_phy500.c index ad66c744..e6d2d7b3 100644 --- a/product/sgm775/scp_ramfw/config_ddr_phy500.c +++ b/product/sgm775/scp_ramfw/config_ddr_phy500.c @@ -45,7 +45,7 @@ static struct fwk_element ddr_phy500_element_table[] = { .ddr = DDR_PHY3, }), }, - [4] = { }, /* Termination description. */ + [4] = { 0 }, /* Termination description. */ }; static const struct fwk_element *ddr_phy500_get_element_table diff --git a/product/sgm775/scp_ramfw/config_dmc500.c b/product/sgm775/scp_ramfw/config_dmc500.c index 567c787b..643d32ad 100644 --- a/product/sgm775/scp_ramfw/config_dmc500.c +++ b/product/sgm775/scp_ramfw/config_dmc500.c @@ -173,7 +173,7 @@ static struct fwk_element dmc500_element_table[] = { .ddr_phy_id = FWK_ID_ELEMENT_INIT(FWK_MODULE_IDX_DDR_PHY500, 3), }), }, - [4] = { }, /* Termination description. */ + [4] = { 0 }, /* Termination description. */ }; static const struct fwk_element *dmc500_get_element_table(fwk_id_t module_id) diff --git a/product/sgm775/scp_ramfw/config_dvfs.c b/product/sgm775/scp_ramfw/config_dvfs.c index 43c7ab97..1b078229 100644 --- a/product/sgm775/scp_ramfw/config_dvfs.c +++ b/product/sgm775/scp_ramfw/config_dvfs.c @@ -38,7 +38,7 @@ static const struct mod_dvfs_domain_config cpu_group_little = { .frequency = 1596 * FWK_MHZ, .voltage = 500, }, - { } + { 0 } } }; @@ -68,7 +68,7 @@ static const struct mod_dvfs_domain_config cpu_group_big = { .frequency = 2450 * FWK_MHZ, .voltage = 500, }, - { } + { 0 } } }; @@ -98,7 +98,7 @@ static const struct mod_dvfs_domain_config gpu = { .frequency = 600 * FWK_MHZ, .voltage = 500, }, - { } + { 0 } } }; @@ -115,7 +115,7 @@ static const struct fwk_element element_table[] = { .name = "GPU", .data = &gpu, }, - { } + { 0 } }; static const struct fwk_element *dvfs_get_element_table(fwk_id_t module_id) diff --git a/product/sgm775/scp_ramfw/config_log.c b/product/sgm775/scp_ramfw/config_log.c index fa492da5..92564a4e 100644 --- a/product/sgm775/scp_ramfw/config_log.c +++ b/product/sgm775/scp_ramfw/config_log.c @@ -30,7 +30,7 @@ static const struct fwk_element pl011_element_table[] = { CLOCK_DEV_IDX_FCMCLK), }), }, - [1] = {}, + [1] = { 0 }, }; static const struct fwk_element *get_pl011_table(fwk_id_t module_id) diff --git a/product/sgm775/scp_ramfw/config_mhu.c b/product/sgm775/scp_ramfw/config_mhu.c index b6f89940..0c465eaf 100644 --- a/product/sgm775/scp_ramfw/config_mhu.c +++ b/product/sgm775/scp_ramfw/config_mhu.c @@ -41,7 +41,7 @@ static const struct fwk_element mhu_element_table[] = { .out = MHU_SCP_INTR_L_BASE, }) }, - [SGM775_MHU_DEVICE_IDX_COUNT] = {}, + [SGM775_MHU_DEVICE_IDX_COUNT] = { 0 }, }; static const struct fwk_element *mhu_get_element_table(fwk_id_t module_id) diff --git a/product/sgm775/scp_ramfw/config_mock_psu.c b/product/sgm775/scp_ramfw/config_mock_psu.c index 366f2023..52bfbcd7 100644 --- a/product/sgm775/scp_ramfw/config_mock_psu.c +++ b/product/sgm775/scp_ramfw/config_mock_psu.c @@ -38,7 +38,7 @@ static const struct fwk_element element_table[] = { .default_voltage = 100, }, }, - { } + { 0 } }; static const struct fwk_element *get_element_table(fwk_id_t module_id) diff --git a/product/sgm775/scp_ramfw/config_pik_clock.c b/product/sgm775/scp_ramfw/config_pik_clock.c index 06c37de7..e22ac470 100644 --- a/product/sgm775/scp_ramfw/config_pik_clock.c +++ b/product/sgm775/scp_ramfw/config_pik_clock.c @@ -280,7 +280,7 @@ static const struct fwk_element pik_clock_element_table[] = { .defer_initialization = false, }), }, - { }, /* Termination description. */ + { 0 }, /* Termination description. */ }; static const struct fwk_element *pik_clock_get_element_table diff --git a/product/sgm775/scp_ramfw/config_power_domain.c b/product/sgm775/scp_ramfw/config_power_domain.c index ea674d40..01eda734 100644 --- a/product/sgm775/scp_ramfw/config_power_domain.c +++ b/product/sgm775/scp_ramfw/config_power_domain.c @@ -63,7 +63,7 @@ static const uint32_t core_pd_allowed_state_mask_table[] = { }; /* Power module specific configuration data (none) */ -static const struct mod_power_domain_config sgm775_power_domain_config = { }; +static const struct mod_power_domain_config sgm775_power_domain_config = { 0 }; static struct fwk_element sgm775_power_domain_static_element_table[] = { [CONFIG_POWER_DOMAIN_SYSTOP_CHILD_CLUSTER0] = { diff --git a/product/sgm775/scp_ramfw/config_ppu_v0.c b/product/sgm775/scp_ramfw/config_ppu_v0.c index 9c65b589..19947297 100644 --- a/product/sgm775/scp_ramfw/config_ppu_v0.c +++ b/product/sgm775/scp_ramfw/config_ppu_v0.c @@ -73,7 +73,7 @@ static struct fwk_element sgm775_ppu_v0_element_table[] = { .ppu.irq = PPU_SYS1_IRQ }), }, - [PPU_V0_ELEMENT_IDX_COUNT] = { }, /* Termination entry */ + [PPU_V0_ELEMENT_IDX_COUNT] = { 0 }, /* Termination entry */ }; diff --git a/product/sgm775/scp_ramfw/config_psu.c b/product/sgm775/scp_ramfw/config_psu.c index 80af3a16..75600382 100644 --- a/product/sgm775/scp_ramfw/config_psu.c +++ b/product/sgm775/scp_ramfw/config_psu.c @@ -44,7 +44,7 @@ static const struct fwk_element element_table[] = { MOD_MOCK_PSU_API_IDX_PSU_DRIVER) }, }, - { } + { 0 } }; static const struct fwk_element *psu_get_element_table(fwk_id_t module_id) diff --git a/product/sgm775/scp_ramfw/config_scmi.c b/product/sgm775/scp_ramfw/config_scmi.c index a79bdab1..2a42bc0b 100644 --- a/product/sgm775/scp_ramfw/config_scmi.c +++ b/product/sgm775/scp_ramfw/config_scmi.c @@ -46,7 +46,7 @@ static const struct fwk_element service_table[] = { .scmi_agent_id = SCMI_AGENT_ID_OSPM, }), }, - [SGM775_SCMI_SERVICE_IDX_COUNT] = {} + [SGM775_SCMI_SERVICE_IDX_COUNT] = { 0 } }; static const struct fwk_element *get_service_table(fwk_id_t module_id) diff --git a/product/sgm775/scp_ramfw/config_scmi_clock.c b/product/sgm775/scp_ramfw/config_scmi_clock.c index 254c9733..bc8411c3 100644 --- a/product/sgm775/scp_ramfw/config_scmi_clock.c +++ b/product/sgm775/scp_ramfw/config_scmi_clock.c @@ -54,7 +54,7 @@ static const struct mod_scmi_clock_device agent_device_table_ospm[] = { }; static const struct mod_scmi_clock_agent agent_table[SCMI_AGENT_ID_COUNT] = { - [SCMI_AGENT_ID_PSCI] = { /* No access */ }, + [SCMI_AGENT_ID_PSCI] = { 0 /* No access */ }, [SCMI_AGENT_ID_OSPM] = { .device_table = agent_device_table_ospm, .device_count = FWK_ARRAY_SIZE(agent_device_table_ospm), diff --git a/product/sgm775/scp_ramfw/config_sds.c b/product/sgm775/scp_ramfw/config_sds.c index e76696c3..d0f445b9 100644 --- a/product/sgm775/scp_ramfw/config_sds.c +++ b/product/sgm775/scp_ramfw/config_sds.c @@ -46,7 +46,7 @@ static const struct fwk_element sds_element_table[] = { .finalize = false, }), }, - { }, /* Termination description. */ + { 0 }, /* Termination description. */ }; static const struct fwk_element *sds_get_element_table(fwk_id_t module_id) diff --git a/product/sgm775/scp_ramfw/config_sensor.c b/product/sgm775/scp_ramfw/config_sensor.c index 816d5f5f..52aa8fe6 100644 --- a/product/sgm775/scp_ramfw/config_sensor.c +++ b/product/sgm775/scp_ramfw/config_sensor.c @@ -28,7 +28,7 @@ static const struct fwk_element reg_sensor_element_table[] = { .reg = (uintptr_t)(SENSOR_SOC_TEMP), }), }, - [REG_SENSOR_DEV_COUNT] = {}, + [REG_SENSOR_DEV_COUNT] = { 0 }, }; static const struct fwk_element *get_reg_sensor_element_table(fwk_id_t id) @@ -60,7 +60,7 @@ static const struct fwk_element sensor_element_table[] = { .name = "Soc Temperature", .data = &soctemp_config, }, - [1] = {}, + [1] = { 0 }, }; static const struct fwk_element *get_sensor_element_table(fwk_id_t module_id) diff --git a/product/sgm775/scp_ramfw/config_smt.c b/product/sgm775/scp_ramfw/config_smt.c index ca506885..227c01ce 100644 --- a/product/sgm775/scp_ramfw/config_smt.c +++ b/product/sgm775/scp_ramfw/config_smt.c @@ -56,7 +56,7 @@ static const struct fwk_element smt_element_table[] = { .driver_api_id = FWK_ID_API_INIT(FWK_MODULE_IDX_MHU, 0), }) }, - [SGM775_SCMI_SERVICE_IDX_COUNT] = {}, + [SGM775_SCMI_SERVICE_IDX_COUNT] = { 0 }, }; static const struct fwk_element *smt_get_element_table(fwk_id_t module_id) diff --git a/product/sgm775/scp_ramfw/config_system_pll.c b/product/sgm775/scp_ramfw/config_system_pll.c index a66543e3..3b54f5f5 100644 --- a/product/sgm775/scp_ramfw/config_system_pll.c +++ b/product/sgm775/scp_ramfw/config_system_pll.c @@ -103,7 +103,7 @@ static const struct fwk_element system_pll_element_table[] = { .defer_initialization = false, }), }, - { }, /* Termination description. */ + { 0 }, /* Termination description. */ }; static const struct fwk_element *system_pll_get_element_table diff --git a/product/sgm775/scp_ramfw/config_timer.c b/product/sgm775/scp_ramfw/config_timer.c index 5221f8ee..c00fb7a6 100644 --- a/product/sgm775/scp_ramfw/config_timer.c +++ b/product/sgm775/scp_ramfw/config_timer.c @@ -32,7 +32,7 @@ static const struct fwk_element gtimer_dev_table[] = { CLOCK_DEV_IDX_FCMCLK), }) }, - [1] = {}, + [1] = { 0 }, }; static const struct fwk_element *gtimer_get_dev_table(fwk_id_t module_id) @@ -58,7 +58,7 @@ static const struct fwk_element timer_dev_table[] = { .data = &refclk_config, .sub_element_count = 8, /* Number of alarms */ }, - [1] = {}, + [1] = { 0 }, }; static const struct fwk_element *timer_get_dev_table(fwk_id_t module_id) diff --git a/product/sgm775/scp_romfw/config_clock.c b/product/sgm775/scp_romfw/config_clock.c index c6bd916e..29e211a0 100644 --- a/product/sgm775/scp_romfw/config_clock.c +++ b/product/sgm775/scp_romfw/config_clock.c @@ -107,7 +107,7 @@ static const struct fwk_element clock_dev_desc_table[] = { .pd_source_id = FWK_ID_MODULE_INIT(FWK_MODULE_IDX_MSYS_ROM), }), }, - [CLOCK_DEV_IDX_COUNT] = { }, /* Termination description. */ + [CLOCK_DEV_IDX_COUNT] = { 0 }, /* Termination description. */ }; static const struct fwk_element *clock_get_dev_desc_table(fwk_id_t module_id) diff --git a/product/sgm775/scp_romfw/config_css_clock.c b/product/sgm775/scp_romfw/config_css_clock.c index c47aa583..05c882e5 100644 --- a/product/sgm775/scp_romfw/config_css_clock.c +++ b/product/sgm775/scp_romfw/config_css_clock.c @@ -120,7 +120,7 @@ static const struct fwk_element css_clock_element_table[] = { .modulation_supported = false, }), }, - { }, /* Termination description. */ + { 0 }, /* Termination description. */ }; static const struct fwk_element *css_clock_get_element_table diff --git a/product/sgm775/scp_romfw/config_log.c b/product/sgm775/scp_romfw/config_log.c index 1a2399e9..d194ecec 100644 --- a/product/sgm775/scp_romfw/config_log.c +++ b/product/sgm775/scp_romfw/config_log.c @@ -30,7 +30,7 @@ static const struct fwk_element pl011_element_desc_table[] = { CLOCK_DEV_IDX_SYS_FCMCLK), }), }, - [1] = {}, + [1] = { 0 }, }; static const struct fwk_element *get_pl011_table(fwk_id_t module_id) diff --git a/product/sgm775/scp_romfw/config_pik_clock.c b/product/sgm775/scp_romfw/config_pik_clock.c index 8059865f..e2cbfdbd 100644 --- a/product/sgm775/scp_romfw/config_pik_clock.c +++ b/product/sgm775/scp_romfw/config_pik_clock.c @@ -292,7 +292,7 @@ static const struct fwk_element pik_clock_element_table[] = { .defer_initialization = true, }), }, - { }, /* Termination description. */ + { 0 }, /* Termination description. */ }; static const struct fwk_element *pik_clock_get_element_table diff --git a/product/sgm775/scp_romfw/config_ppu_v0.c b/product/sgm775/scp_romfw/config_ppu_v0.c index 59051a41..012d4ef7 100644 --- a/product/sgm775/scp_romfw/config_ppu_v0.c +++ b/product/sgm775/scp_romfw/config_ppu_v0.c @@ -30,7 +30,7 @@ static struct fwk_element sgm775_ppu_v0_element_table[] = { .default_power_on = true, }), }, - {}, /* Termination entry */ + { 0 }, /* Termination entry */ }; diff --git a/product/sgm775/scp_romfw/config_ppu_v1.c b/product/sgm775/scp_romfw/config_ppu_v1.c index c1e1e954..bf20c4b5 100644 --- a/product/sgm775/scp_romfw/config_ppu_v1.c +++ b/product/sgm775/scp_romfw/config_ppu_v1.c @@ -36,7 +36,7 @@ static struct fwk_element sgm775_ppu_v1_element_table[] = { .observer_id = FWK_ID_NONE_INIT, }), }, - {}, /* Termination entry */ + { 0 }, /* Termination entry */ }; static const struct fwk_element *sgm775_ppu_v1_get_element_table( diff --git a/product/sgm775/scp_romfw/config_sds.c b/product/sgm775/scp_romfw/config_sds.c index 9f480a38..72a5f69a 100644 --- a/product/sgm775/scp_romfw/config_sds.c +++ b/product/sgm775/scp_romfw/config_sds.c @@ -99,7 +99,7 @@ static const struct fwk_element sds_element_table[] = { }), }, #endif - {}, /* Termination description. */ + { 0 }, /* Termination description. */ }; static const struct fwk_element *sds_get_element_table(fwk_id_t module_id) diff --git a/product/sgm775/scp_romfw/config_system_pll.c b/product/sgm775/scp_romfw/config_system_pll.c index a709b140..a62a198e 100644 --- a/product/sgm775/scp_romfw/config_system_pll.c +++ b/product/sgm775/scp_romfw/config_system_pll.c @@ -77,7 +77,7 @@ static const struct fwk_element system_pll_element_table[] = { .defer_initialization = false, }), }, - { }, /* Termination description. */ + { 0 }, /* Termination description. */ }; static const struct fwk_element *system_pll_get_element_table diff --git a/product/sgm775/scp_romfw/config_timer.c b/product/sgm775/scp_romfw/config_timer.c index c88f1d17..b76442f9 100644 --- a/product/sgm775/scp_romfw/config_timer.c +++ b/product/sgm775/scp_romfw/config_timer.c @@ -31,7 +31,7 @@ static const struct fwk_element gtimer_dev_table[] = { CLOCK_DEV_IDX_SYS_FCMCLK), }) }, - [1] = {}, + [1] = { 0 }, }; static const struct fwk_element *gtimer_get_dev_table(fwk_id_t module_id) @@ -55,7 +55,7 @@ static const struct fwk_element timer_dev_table[] = { .name = "REFCLK", .data = &refclk_config, }, - [1] = {}, + [1] = { 0 }, }; static const struct fwk_element *timer_get_dev_table(fwk_id_t module_id) |