commit | 9628c3e8b12d6e64dd649b14770c25b5e8be3b70 | [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 | e9a1d8bfc95dd971426fdb6ee951040c9f2bbcea [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>