]> git.baikalelectronics.ru Git - uboot.git/commit
net: ftmac100: simplify priv->iobase casting
authorSergei Antonov <saproj@gmail.com>
Fri, 3 Feb 2023 19:09:03 +0000 (22:09 +0300)
committerTom Rini <trini@konsulko.com>
Fri, 10 Feb 2023 18:41:07 +0000 (13:41 -0500)
commit1027f5e75169a39cd44f18c9dfd791a882a04c22
treefbe75cfada9dbe216e74a435a3ce80ace7b07adc
parent9d6d90de56ec68a3dc386728b68a185cfbea8a7d
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@gmail.com>
Reviewed-by: Rick Chen <rick@andestech.com>
drivers/net/ftmac100.c