aarch64: fix bug in rtc unit test
The read function returns an u32 in the
`data` parameter which is an array of u8s.
As a consequence, expecting data
that has length bigger than 4 is not reasonable as it
would not fit in an u32.
@@ -265,7 +265,7 @@ mod tests {
assert_eq!(no_errors_after - no_errors_before, 1);
// However, reading from the AMBA_ID_LOW should succeed upon read.
- let mut data = [0; 8];
+ let mut data = [0; 4];
rtc.read(AMBA_ID_LOW, &mut data);
let index = AMBA_ID_LOW + 3;
assert_eq!(data[0], PL031_ID[((index - AMBA_ID_LOW) >> 2) as usize]);
