]> git.karo-electronics.de Git - linux-beck.git/commit
staging: rtl8712: Change _LED_STATE enum in rtl871x driver to avoid conflicts with...
authorZach Brown <zach.brown@ni.com>
Tue, 27 Sep 2016 21:51:49 +0000 (16:51 -0500)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 28 Sep 2016 09:36:45 +0000 (11:36 +0200)
commit0c1d83c495d04658c25e5ccc90109dae452fa441
tree84f1fa484abe902a0f771116fe6aa540a75938c6
parent30f9b3fe4da07cab7f1ea5759fd15c482ae65e78
staging: rtl8712: Change _LED_STATE enum in rtl871x driver to avoid conflicts with LED namespace

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

The rtl871 driver declared an enum for representing LED states. The enum
contains constant LED_OFF which conflicted with declaration found in
linux/leds.h. LED_OFF changed to LED_STATE_OFF
In order to avoid a possible future collision LED_ON was changed to
LED_STATE_ON as well.

Signed-off-by: Zach Brown <zach.brown@ni.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/rtl8712/rtl8712_led.c