]> git.dujemihanovic.xyz Git - u-boot.git/commit
rockchip: adc: rockchip-saradc: use dev_read_addr_ptr
authorJohan Jonker <jbx6244@gmail.com>
Mon, 13 Mar 2023 00:29:35 +0000 (01:29 +0100)
committerKever Yang <kever.yang@rock-chips.com>
Sat, 6 May 2023 09:28:18 +0000 (17:28 +0800)
commitac9198d1d549b516c7c27f7eaf19dd4a9b5dfbf5
tree6a21685d8b91e7de104fa9c4f8793975bbacda2e
parentbdf57198ba5ebbe07df2fd50e5efa6a201a9c104
rockchip: adc: rockchip-saradc: use dev_read_addr_ptr

The fdt_addr_t and phys_addr_t size have been decoupled.
A 32bit CPU can expext 64-bit data from the device tree parser,
so use dev_read_addr_ptr in the rockchip-saradc.c file.
As we are there also streamline the error response to -EINVAL on return.

Signed-off-by: Johan Jonker <jbx6244@gmail.com>
Reviewed-by: Kever Yang <kever.yang@rock-chips.com>
drivers/adc/rockchip-saradc.c