aboutsummaryrefslogtreecommitdiff
path: root/product/rdn1e1
diff options
context:
space:
mode:
authorChris Kay <chris.kay@arm.com>2019-02-21 15:14:55 +0000
committersouvikkc <52570545+souvikkc@users.noreply.github.com>2019-10-15 10:48:39 +0100
commite4ad30d7adc1bdcf8687d0e7bff71ae0d792f715 (patch)
tree7c8d39a2bfd251f27888e785b94c983c25ec03a0 /product/rdn1e1
parent5a0bd548610c025e0c013ab5bf0708561fc6aa2f (diff)
mock_psu: Refactor module
This patch re-formats the Mock PSU module to comply with the updated coding style rules, as well as to clean up subtle issues and bring it up to date with current best-practices. Change-Id: I3caff2686bdafeb3bf48fd49b17165bea54fe030 Signed-off-by: Chris Kay <chris.kay@arm.com>
Diffstat (limited to 'product/rdn1e1')
-rw-r--r--product/rdn1e1/scp_ramfw/config_mock_psu.c4
-rw-r--r--product/rdn1e1/scp_ramfw/config_psu.c4
2 files changed, 4 insertions, 4 deletions
diff --git a/product/rdn1e1/scp_ramfw/config_mock_psu.c b/product/rdn1e1/scp_ramfw/config_mock_psu.c
index 3c72b9ad..fa66ac18 100644
--- a/product/rdn1e1/scp_ramfw/config_mock_psu.c
+++ b/product/rdn1e1/scp_ramfw/config_mock_psu.c
@@ -13,7 +13,7 @@ static const struct fwk_element element_table[] = {
{
.name = "DVFS_GROUP0",
.data =
- &(const struct mod_mock_psu_device_config){
+ &(const struct mod_mock_psu_element_cfg){
.default_enabled = true,
.default_voltage = 100,
},
@@ -21,7 +21,7 @@ static const struct fwk_element element_table[] = {
{
.name = "DVFS_GROUP1",
.data =
- &(const struct mod_mock_psu_device_config){
+ &(const struct mod_mock_psu_element_cfg){
.default_enabled = true,
.default_voltage = 100,
},
diff --git a/product/rdn1e1/scp_ramfw/config_psu.c b/product/rdn1e1/scp_ramfw/config_psu.c
index 40d317c6..835f6a59 100644
--- a/product/rdn1e1/scp_ramfw/config_psu.c
+++ b/product/rdn1e1/scp_ramfw/config_psu.c
@@ -17,7 +17,7 @@ static const struct fwk_element element_table[] = {
.data = &(const struct mod_psu_element_cfg) {
.driver_id = FWK_ID_ELEMENT_INIT(FWK_MODULE_IDX_MOCK_PSU, 0),
.driver_api_id = FWK_ID_API_INIT(FWK_MODULE_IDX_MOCK_PSU,
- MOD_MOCK_PSU_API_IDX_PSU_DRIVER)
+ MOD_MOCK_PSU_API_IDX_DRIVER)
},
},
{
@@ -25,7 +25,7 @@ static const struct fwk_element element_table[] = {
.data = &(const struct mod_psu_element_cfg){
.driver_id = FWK_ID_ELEMENT_INIT(FWK_MODULE_IDX_MOCK_PSU, 1),
.driver_api_id = FWK_ID_API_INIT(FWK_MODULE_IDX_MOCK_PSU,
- MOD_MOCK_PSU_API_IDX_PSU_DRIVER)
+ MOD_MOCK_PSU_API_IDX_DRIVER)
},
},
{ 0 }