Re: [PATCH v3 2/3] net: ftmac100: simplify priv->iobase casting

Tom Rini
2023-02-10T18:47:10Z

[-- Attachment #1: Type: text/plain, Size: 454 bytes --]

On Fri, Feb 03, 2023 at 10:09:03PM +0300, Sergei Antonov wrote:

> Replace 'phys_addr_t iobase' with 'struct ftmac100 *ftmac100' in
> struct ftmac100_data. It allows to remove casting in a number of places.
>
> Since priv->iobase is phys_addr_t, use phys_to_virt() to make
> a pointer from it.
>
> Signed-off-by: Sergei Antonov <saproj@gmail.com>
> Reviewed-by: Rick Chen <rick@andestech.com>

Applied to u-boot/master, thanks!

--
Tom

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 659 bytes --]