net: phy: micrel: add led-mode sanity check
authorJohan Hovold <johan@kernel.org>
Tue, 11 Nov 2014 19:00:12 +0000 (20:00 +0100)
committerDavid S. Miller <davem@davemloft.net>
Wed, 12 Nov 2014 18:55:36 +0000 (13:55 -0500)
commit8620546c39a379e3b0cc5210519c0bc22377b914
treeaff73ee35f687ea56b7303ff67c47e8c6ac64b1f
parent57a38effa598aa18ca707fdd844cda02e528afae
net: phy: micrel: add led-mode sanity check

Make sure never to update more than two bits when setting the led mode,
something which could for example change the reference-clock setting.

Signed-off-by: Johan Hovold <johan@kernel.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/phy/micrel.c