cfi_flash: Use uintptr_t for casts from u32 to void *