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

Tom Rini trini at konsulko.com
Fri Feb 10 19:44:46 CET 2023


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 at gmail.com>
> Reviewed-by: Rick Chen <rick at andestech.com>

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/20230210/43e1edc2/attachment.sig>


More information about the U-Boot mailing list