Johan Jonker a12a73b664 drivers: use dev_read_addr_ptr when cast to pointer
The fdt_addr_t and phys_addr_t size have been decoupled. A 32bit CPU
can expect 64-bit data from the device tree parser, so use
dev_read_addr_ptr instead of the dev_read_addr function in the
various files in the drivers directory that cast to a pointer.
As we are there also streamline the error response to -EINVAL on return.

Signed-off-by: Johan Jonker <jbx6244@gmail.com>
Reviewed-by: Simon Glass <sjg@chromium.org>
2023-05-06 17:28:18 +08:00
..
2022-12-08 18:06:27 +02:00
2023-04-16 12:28:06 +02:00
2023-03-02 17:45:57 -05:00
2022-12-05 16:07:13 -05:00
2023-02-27 16:28:30 +01:00
2022-01-19 18:11:34 +01:00