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

2021-07-14 Thread Tom Rini
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 > Reviewed-by: Linus Walleij Applied

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

2021-07-02 Thread Linus Walleij
On Fri, Jul 2, 2021 at 6:00 PM 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 Reviewed-by: Linus Walleij Yours, Linus

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

2021-07-02 Thread Stephan Gerhold
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 --- drivers/timer/nomadik-mtu-timer.c | 7 ++- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git