forked from Imagelibrary/rtems
bsp/mpc55xx: Use RTEMS_ARRAY_SIZE()
This commit is contained in:
@@ -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 */
|
||||
|
||||
@@ -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 */
|
||||
|
||||
@@ -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)
|
||||
};
|
||||
|
||||
@@ -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)
|
||||
};
|
||||
|
||||
@@ -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)
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user