net: tsec: Common handling of MAC station address for DM_ETH
authorVladimir Oltean <olteanv@gmail.com>
Thu, 18 Jul 2019 21:29:57 +0000 (00:29 +0300)
committerJoe Hershberger <joe.hershberger@ni.com>
Thu, 25 Jul 2019 18:13:31 +0000 (13:13 -0500)
commitf6297c06928879127c9de481a4c79824a83c2bd1
tree57cd4ad404c0ec269ca6eff0719eda7794c0bfcf
parentb7be776776b0739d78ed42a52b1bc8b5b0bc6e13
net: tsec: Common handling of MAC station address for DM_ETH

In tsec_init, the MAC address is retrieved from 2 different structures
depending on whether DM_ETH is enabled or not.

But since the field name is the same inside both structures, we can
conditionally define the structure of the correct type and simplify the
assignments.

Signed-off-by: Vladimir Oltean <olteanv@gmail.com>
Acked-by: Joe Hershberger <joe.hershberger@ni.com>
Reviewed-by: Bin Meng <bmeng.cn@gmail.com>
drivers/net/tsec.c