net: phy: dp83848: Reorganize code for readability and safety
authorAndrew F. Davis <afd@ti.com>
Sun, 7 Feb 2016 17:47:19 +0000 (11:47 -0600)
committerDavid S. Miller <davem@davemloft.net>
Thu, 11 Feb 2016 16:52:02 +0000 (11:52 -0500)
commitcf13be5afd30363e5e6e1232e004bae99ee3c623
tree55f6c4278ea207c5dd0e456c4f5c262a8775f7c1
parent68336293462c92ba420528dd293d54ee879b6e15
net: phy: dp83848: Reorganize code for readability and safety

Reorganize code by moving the desired interrupt mask definition
out of function. Also rearrange the enable/disable interrupt function
to prevent accidental over-writing of values in registers.

Signed-off-by: Andrew F. Davis <afd@ti.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/phy/dp83848.c