diff mbox series

[U-Boot,RESEND,3/6] rockchip: efuse: change to use dev_read_addr_ptr

Message ID 1505230349-5412-4-git-send-email-philipp.tomsich@theobroma-systems.com
State Accepted
Commit f6230a00579d5ca5ba01ca158f5c369cf64e87eb
Delegated to: Philipp Tomsich
Headers show
Series rockchip: enable live tree on the RK3399 and validate on the RK3399-Q7 | expand

Commit Message

Philipp Tomsich Sept. 12, 2017, 3:32 p.m. UTC
With the dev_read_addr_ptr function available, we can change the
efuse driver to use it (and eliminate the explicit type-cast).

Signed-off-by: Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
---

 drivers/misc/rockchip-efuse.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

Comments

Simon Glass Sept. 13, 2017, 4:26 a.m. UTC | #1
On 12 September 2017 at 09:32, Philipp Tomsich
<philipp.tomsich@theobroma-systems.com> wrote:
> With the dev_read_addr_ptr function available, we can change the
> efuse driver to use it (and eliminate the explicit type-cast).
>
> Signed-off-by: Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
> ---
>
>  drivers/misc/rockchip-efuse.c | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)

Reviewed-by: Simon Glass <sjg@chromium.org>
Philipp Tomsich Sept. 13, 2017, 10:29 a.m. UTC | #2
> With the dev_read_addr_ptr function available, we can change the
> efuse driver to use it (and eliminate the explicit type-cast).
> 
> Signed-off-by: Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
> Reviewed-by: Simon Glass <sjg@chromium.org>
> ---
> 
>  drivers/misc/rockchip-efuse.c | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
> 

Applied to u-boot-rockchip, thanks!
diff mbox series

Patch

diff --git a/drivers/misc/rockchip-efuse.c b/drivers/misc/rockchip-efuse.c
index 2e3bc91..a2203bf 100644
--- a/drivers/misc/rockchip-efuse.c
+++ b/drivers/misc/rockchip-efuse.c
@@ -142,7 +142,7 @@  static int rockchip_efuse_ofdata_to_platdata(struct udevice *dev)
 {
 	struct rockchip_efuse_platdata *plat = dev_get_platdata(dev);
 
-	plat->base = (void *)dev_read_addr(dev);
+	plat->base = dev_read_addr_ptr(dev);
 	return 0;
 }