diff options
author | Johan Jonker <jbx6244@gmail.com> | 2023-03-13 01:31:49 +0100 |
---|---|---|
committer | Kever Yang <kever.yang@rock-chips.com> | 2023-05-06 17:28:18 +0800 |
commit | e5822ecba2d73e64ca55c26fc4762d9e80b1f1b5 (patch) | |
tree | ed5afa03d8d1d2f8b27ee44a8d19c215f7017378 /drivers/i2c/i2c-cdns.c | |
parent | 8fa64bd1715d38f079e1369d282ac06c879be083 (diff) |
drivers: use dev_read_addr_index_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_index_ptr instead of the dev_read_addr_index 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: Michael Trimarchi <michael@amarulasolutions.com>
Reviewed-by: Simon Glass <sjg@chromium.org>
Diffstat (limited to 'drivers/i2c/i2c-cdns.c')
0 files changed, 0 insertions, 0 deletions