commit | 2f69cb0a8fa1bfe8c8a16f7085f375d6719adb19 | [log] [tgz] |
---|---|---|
author | Sergei Antonov <saproj@gmail.com> | Fri Feb 03 22:09:03 2023 +0300 |
committer | Tom Rini <trini@konsulko.com> | Fri Feb 10 13:41:07 2023 -0500 |
tree | fbe75cfada9dbe216e74a435a3ce80ace7b07adc | |
parent | 0e15edb3f4c14866cca96d9435d3d16fbe3bad30 [diff] |
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>