]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commitb3dbf2740256671a188f906f4ac112e1b7eb7c31
tree55f6c4278ea207c5dd0e456c4f5c262a8775f7c1
parent2c499e77bfeb7d091f78ae933b001bc0a3e9d098
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