[rtems commit] bsp/mpc55xx: Use RTEMS_ARRAY_SIZE()
Sebastian Huber
sebh at rtems.org
Mon Dec 3 12:14:54 UTC 2012
Module: rtems
Branch: master
Commit: f4309b0398fd9ba4cb3794761b9bfdcbcf5c065d
Changeset: http://git.rtems.org/rtems/commit/?id=f4309b0398fd9ba4cb3794761b9bfdcbcf5c065d
Author: Sebastian Huber <sebastian.huber at embedded-brains.de>
Date: Mon Nov 26 16:58:58 2012 +0100
bsp/mpc55xx: Use RTEMS_ARRAY_SIZE()
---
.../mpc55xxevb/startup/start-config-ebi-cs-cal.c | 2 +-
.../mpc55xxevb/startup/start-config-ebi-cs.c | 2 +-
.../mpc55xxevb/startup/start-config-mmu-early.c | 3 +--
.../powerpc/mpc55xxevb/startup/start-config-mmu.c | 2 +-
.../mpc55xxevb/startup/start-config-siu-pcr.c | 2 +-
5 files changed, 5 insertions(+), 6 deletions(-)
diff --git a/c/src/lib/libbsp/powerpc/mpc55xxevb/startup/start-config-ebi-cs-cal.c b/c/src/lib/libbsp/powerpc/mpc55xxevb/startup/start-config-ebi-cs-cal.c
index 0a18222..00ac019 100644
--- a/c/src/lib/libbsp/powerpc/mpc55xxevb/startup/start-config-ebi-cs-cal.c
+++ b/c/src/lib/libbsp/powerpc/mpc55xxevb/startup/start-config-ebi-cs-cal.c
@@ -173,7 +173,7 @@ const struct EBI_CAL_CS_tag mpc55xx_start_config_ebi_cal_cs [] = {
};
const size_t mpc55xx_start_config_ebi_cal_cs_count [] = {
- sizeof(mpc55xx_start_config_ebi_cal_cs) / sizeof(mpc55xx_start_config_ebi_cal_cs [0])
+ RTEMS_ARRAY_SIZE(mpc55xx_start_config_ebi_cal_cs)
};
#endif /* MPC55XX_HAS_EBI */
diff --git a/c/src/lib/libbsp/powerpc/mpc55xxevb/startup/start-config-ebi-cs.c b/c/src/lib/libbsp/powerpc/mpc55xxevb/startup/start-config-ebi-cs.c
index 74ed7d6..7f868b9 100644
--- a/c/src/lib/libbsp/powerpc/mpc55xxevb/startup/start-config-ebi-cs.c
+++ b/c/src/lib/libbsp/powerpc/mpc55xxevb/startup/start-config-ebi-cs.c
@@ -158,7 +158,7 @@ const struct EBI_CS_tag mpc55xx_start_config_ebi_cs [] = {
};
const size_t mpc55xx_start_config_ebi_cs_count [] = {
- sizeof(mpc55xx_start_config_ebi_cs) / sizeof(mpc55xx_start_config_ebi_cs [0])
+ RTEMS_ARRAY_SIZE(mpc55xx_start_config_ebi_cs)
};
#endif /* MPC55XX_HAS_EBI */
diff --git a/c/src/lib/libbsp/powerpc/mpc55xxevb/startup/start-config-mmu-early.c b/c/src/lib/libbsp/powerpc/mpc55xxevb/startup/start-config-mmu-early.c
index 42508a7..dd8131d 100644
--- a/c/src/lib/libbsp/powerpc/mpc55xxevb/startup/start-config-mmu-early.c
+++ b/c/src/lib/libbsp/powerpc/mpc55xxevb/startup/start-config-mmu-early.c
@@ -50,6 +50,5 @@ const struct MMU_tag mpc55xx_start_config_mmu_early [] = {
};
const size_t mpc55xx_start_config_mmu_early_count [] = {
- sizeof(mpc55xx_start_config_mmu_early)
- / sizeof(mpc55xx_start_config_mmu_early [0])
+ RTEMS_ARRAY_SIZE(mpc55xx_start_config_mmu_early)
};
diff --git a/c/src/lib/libbsp/powerpc/mpc55xxevb/startup/start-config-mmu.c b/c/src/lib/libbsp/powerpc/mpc55xxevb/startup/start-config-mmu.c
index 4093c7d..beb027a 100644
--- a/c/src/lib/libbsp/powerpc/mpc55xxevb/startup/start-config-mmu.c
+++ b/c/src/lib/libbsp/powerpc/mpc55xxevb/startup/start-config-mmu.c
@@ -118,5 +118,5 @@ const struct MMU_tag mpc55xx_start_config_mmu [] = {
};
const size_t mpc55xx_start_config_mmu_count [] = {
- sizeof(mpc55xx_start_config_mmu) / sizeof(mpc55xx_start_config_mmu [0])
+ RTEMS_ARRAY_SIZE(mpc55xx_start_config_mmu)
};
diff --git a/c/src/lib/libbsp/powerpc/mpc55xxevb/startup/start-config-siu-pcr.c b/c/src/lib/libbsp/powerpc/mpc55xxevb/startup/start-config-siu-pcr.c
index 692dba2..320c02f 100644
--- a/c/src/lib/libbsp/powerpc/mpc55xxevb/startup/start-config-siu-pcr.c
+++ b/c/src/lib/libbsp/powerpc/mpc55xxevb/startup/start-config-siu-pcr.c
@@ -131,5 +131,5 @@ const mpc55xx_siu_pcr_config mpc55xx_start_config_siu_pcr [] = {
};
const size_t mpc55xx_start_config_siu_pcr_count [] = {
- sizeof(mpc55xx_start_config_siu_pcr) / sizeof(mpc55xx_start_config_siu_pcr [0])
+ RTEMS_ARRAY_SIZE(mpc55xx_start_config_siu_pcr)
};
More information about the vc
mailing list