Refactor driver instantiations to take uintptr_t instead of void *
Depthcharge driver instatiation routines all follow the pattern
new_device(void *base_address) and are always called from a board.c file
with an integer literal that is casted twice ((void *)(uintptr_t)). In
order to preserve the sanity of future developers, let's remove that
boilerplate and make the functions accept uintptr_t integer literals
directly.
BUG=None
TEST=None
Change-Id: I5b881bae1a8274f10cd756c356ff4b0f73f043ed
Signed-off-by: Julius Werner <jwerner@chromium.org>
Reviewed-on: https://chromium-review.googlesource.com/169656
Reviewed-by: Gabe Black <gabeblack@chromium.org>
17 files changed