[PATCH] timer: nomadik-mtu: Use dev_read_addr_ptr()

Tom Rini trini at konsulko.com
Wed Jul 14 22:52:13 CEST 2021


On Fri, Jul 02, 2021 at 06:00:13PM +0200, Stephan Gerhold wrote:

> Simplify the code a bit by using dev_read_addr_ptr() instead of
> dev_read_addr(). This avoids having to cast explicitly to the
> struct nomadik_mtu_regs.
> 
> Signed-off-by: Stephan Gerhold <stephan at gerhold.net>
> Reviewed-by: Linus Walleij <linus.walleij at linaro.org>

Applied to u-boot/master, thanks!

-- 
Tom
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 659 bytes
Desc: not available
URL: <https://lists.denx.de/pipermail/u-boot/attachments/20210714/de4937df/attachment.sig>


More information about the U-Boot mailing list