diff options
author | Deepak Kodihalli <dkodihal@in.ibm.com> | 2017-07-17 06:15:16 -0500 |
---|---|---|
committer | Patrick Williams <patrick@stwcx.xyz> | 2017-07-19 23:00:57 +0000 |
commit | 64ec3e4541276349ae3e37b5755f7b7e0b69ed31 (patch) | |
tree | 31988b1e3d2106f66840e89bb07d85b9d33bc98c /mboxd.c | |
parent | aee738978b17c6a47a961ffe24b93eedaa0c63c5 (diff) | |
download | phosphor-mboxd-64ec3e4541276349ae3e37b5755f7b7e0b69ed31.tar.gz phosphor-mboxd-64ec3e4541276349ae3e37b5755f7b7e0b69ed31.zip |
vpnor: rename APIs
To maintain consistency, rename vpnor_create_partition_table to
init_vpnor and vpnor_destroy_partition_table to destroy_vpnor. Also move
a bunch of vpnor specific string copy code from main() to init_vpnor().
Change-Id: Ia1b6598d4d308dd727916dc79be9b3b733f314f2
Signed-off-by: Deepak Kodihalli <dkodihal@in.ibm.com>
Diffstat (limited to 'mboxd.c')
-rw-r--r-- | mboxd.c | 8 |
1 files changed, 2 insertions, 6 deletions
@@ -344,11 +344,7 @@ int main(int argc, char **argv) } #ifdef VIRTUAL_PNOR_ENABLED - vpnor_create_partition_table(context); - - strcpy(context->paths.ro_loc, PARTITION_FILES_RO_LOC); - strcpy(context->paths.rw_loc, PARTITION_FILES_RW_LOC); - strcpy(context->paths.prsv_loc, PARTITION_FILES_PRSV_LOC); + init_vpnor(context); #endif /* Set the LPC bus mapping */ @@ -377,7 +373,7 @@ finish: free_mbox_dev(context); free_windows(context); #ifdef VIRTUAL_PNOR_ENABLED - vpnor_destroy_partition_table(context); + destroy_vpnor(context); #endif free(context); |