]> git.baikalelectronics.ru Git - kernel.git/commit
skge: Rename LED_OFF and LED_ON in marvel skge driver to avoid conflicts with leds...
authorZach Brown <zach.brown@ni.com>
Mon, 17 Oct 2016 15:49:52 +0000 (10:49 -0500)
committerDavid S. Miller <davem@davemloft.net>
Tue, 18 Oct 2016 15:56:30 +0000 (11:56 -0400)
commit347d21d05999d4a0183021f4e0f2e66fd5b5d4bf
treed29652973316b735da4b9e42ab47aa18ae732c8b
parent2406983313a4a72e31de313c619d188f6c82a0c8
skge: Rename LED_OFF and LED_ON in marvel skge driver to avoid conflicts with leds namespace

Adding led support for phy causes namespace conflicts for some
phy drivers.

The marvel skge driver declared an enum for representing the states of
Link LED Register. The enum contained constant LED_OFF which conflicted
with declartation found in linux/leds.h.
LED_OFF changed to LED_REG_OFF
Also changed LED_ON to LED_REG_ON to avoid possible future conflict and
for consistency.

Signed-off-by: Zach Brown <zach.brown@ni.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/marvell/skge.c
drivers/net/ethernet/marvell/skge.h