]> git.dujemihanovic.xyz Git - u-boot.git/commit
pinctrl: single: fix compile warnings with PHYS_64BIT on 32bit
authorMatthias Schiffer <matthias.schiffer@ew.tq-group.com>
Wed, 27 Sep 2023 13:33:33 +0000 (15:33 +0200)
committerSimon Glass <sjg@chromium.org>
Fri, 13 Oct 2023 20:01:32 +0000 (14:01 -0600)
commit7f18fb8a272893eb32ce88cb780d51b4390b1899
treed4ce0dba61e0ee9facc3cd23dfc007473712cfe9
parentbc8fa1cbfd429138ebd894a170ce36b07f86b150
pinctrl: single: fix compile warnings with PHYS_64BIT on 32bit

pinctrl-single uses fdt_addr_t and phys_addr_t inconsistently, but both
are wrong to be passed to readb() etc., which expect a pointer or
pointer-sized integer. Change the driver to use
dev_read_addr_size_index_ptr(), so we consistently deal with void*
(except for the sandbox case and single_get_pin_muxing()).

Signed-off-by: Matthias Schiffer <matthias.schiffer@ew.tq-group.com>
Reviewed-by: Simon Glass <sjg@chromium.org>
Add missing mapmem.h header:
Signed-off-by: Simon Glass <sjg@chromium.org>
drivers/pinctrl/pinctrl-single.c