]> git.dujemihanovic.xyz Git - u-boot.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)
commit9628c3e8b12d6e64dd649b14770c25b5e8be3b70
treefbe75cfada9dbe216e74a435a3ce80ace7b07adc
parente9a1d8bfc95dd971426fdb6ee951040c9f2bbcea
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