summaryrefslogtreecommitdiff
path: root/src/southbridge
diff options
context:
space:
mode:
authorAngel Pons <th3fanbus@gmail.com>2020-10-17 18:42:49 +0200
committerPatrick Georgi <pgeorgi@google.com>2020-10-19 07:06:41 +0000
commit5c2d1906d928f9ff388779a0a21141daea5d19e3 (patch)
tree453ae0c3d47f113aa688904e82eeeab61d50bc01 /src/southbridge
parent00e58c35c62dbd6c2b20980d594b2b9d1153aa45 (diff)
sb/intel/ibexpeak: Use ARRAY_SIZE macro
Tested with BUILD_TIMELESS=1, Packard Bell MS2290 remains identical. Change-Id: I01730e25ee78a74048f0b93faef00ebaee82ba77 Signed-off-by: Angel Pons <th3fanbus@gmail.com> Reviewed-on: https://review.coreboot.org/c/coreboot/+/46529 Reviewed-by: Felix Singer <felixsinger@posteo.net> Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Diffstat (limited to 'src/southbridge')
-rw-r--r--src/southbridge/intel/ibexpeak/lpc.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/southbridge/intel/ibexpeak/lpc.c b/src/southbridge/intel/ibexpeak/lpc.c
index 55dcb02d9b..d4f1925c2a 100644
--- a/src/southbridge/intel/ibexpeak/lpc.c
+++ b/src/southbridge/intel/ibexpeak/lpc.c
@@ -293,7 +293,7 @@ static void mobile5_pm_init(struct device *dev)
/* 2010: */ 0x00188200, 0x14000016, 0xbc4abcb5, 0x00000000,
/* 2020: */ 0xf0c9605b, 0x13683040, 0x04c8f16e, 0x09e90170
};
- for (i = 0; i < sizeof(rcba2010) / sizeof(rcba2010[0]); i++)
+ for (i = 0; i < ARRAY_SIZE(rcba2010); i++)
{
RCBA32 (0x2010 + 4 * i) = rcba2010[i];
RCBA32 (0x2010 + 4 * i);
@@ -331,7 +331,7 @@ static void mobile5_pm_init(struct device *dev)
/* 2270 */ 0x00001c01, 0x16000000, 0x00010107, 0x00160000
};
- for (i = 0; i < sizeof(rcba2210) / sizeof(rcba2210[0]); i++)
+ for (i = 0; i < ARRAY_SIZE(rcba2210); i++)
{
RCBA32 (0x2210 + 4 * i) = rcba2210[i];
RCBA32 (0x2210 + 4 * i);
@@ -344,7 +344,7 @@ static void mobile5_pm_init(struct device *dev)
/* 2320: */ 0xcccc0cfc, 0x0fbb0fff
};
- for (i = 0; i < sizeof(rcba2300) / sizeof(rcba2300[0]); i++)
+ for (i = 0; i < ARRAY_SIZE(rcba2300); i++)
{
RCBA32 (0x2300 + 4 * i) = rcba2300[i];
RCBA32 (0x2300 + 4 * i);