commit | f4bab85b47f7cf89628fc6cee8e06b14b81773da | [log] [tgz] |
---|---|---|
author | Mario Six <mario.six@gdsys.cc> | Fri Jan 26 14:43:49 2018 +0100 |
committer | Stefan Roese <sr@denx.de> | Mon Jan 29 07:48:58 2018 +0100 |
tree | 6c026fbef677906913feba8eef94d995d8970fdc | |
parent | 6cf5574ffff7c9c8b88eec793e3488dd5a48e86d [diff] |
cfi_flash: Use u8 pointers instead of void pointers According to the C standard, pointer arithmetic for pointers of type void is undefined behavior (the assumption that they're 8-bit wide is a GCC-specific assumption). In the interest of keeping the code standards-compliant, and also better communicate intent, switch all void* variables where pointer arithmetic is used to u8* variables. Signed-off-by: Mario Six <mario.six@gdsys.cc> Signed-off-by: Stefan Roese <sr@denx.de>