bsp/mpc55xx: Use RTEMS_ARRAY_SIZE()

This commit is contained in:
Sebastian Huber
2012-11-26 16:58:58 +01:00
parent 29919ec05b
commit f4309b0398
5 changed files with 5 additions and 6 deletions

View File

@@ -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 */

View File

@@ -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 */

View File

@@ -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)
};

View File

@@ -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)
};

View File

@@ -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)
};