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

Rick Chen rickchen36 at gmail.com
Thu Feb 9 03:46:48 CET 2023


> From: U-Boot <u-boot-bounces at lists.denx.de> On Behalf Of Sergei Antonov
> Sent: Saturday, February 04, 2023 3:09 AM
> To: u-boot at lists.denx.de; rfried.dev at gmail.com; joe.hershberger at ni.com
> Cc: Sergei Antonov <saproj at gmail.com>
> Subject: [PATCH v3 2/3] net: ftmac100: simplify priv->iobase casting
>
> 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>


More information about the U-Boot mailing list