The current range check for the offset is wrong: it is counting bytes, while indexing an array of uint32_t. Since the offset is always zero, the parameter is unnecessary. Instead of adding more code to fix the check, remove the parameter to avoid the problem entirely. Signed-off-by: Samuel Holland <samuel@sholland.org> Change-Id: Iadfc7d027155adc754e017b3462233ce9a1d64f6 |
||
---|---|---|
.. | ||
mentor_i2c_plat.h | ||
plat_macros.S | ||
platform_def.h | ||
sunxi_def.h | ||
sunxi_private.h |