summaryrefslogtreecommitdiff
path: root/target/linux/generic/patches-3.3/a01-swconfig_leds-define-leds_set_brightness.patch
blob: e9362e420b382acb8c6fd83ac5237ae6bd0f4e0e (plain)
1
2
3
4
5
6
7
8
9
10
11
--- a/drivers/net/phy/swconfig_leds.c
+++ b/drivers/net/phy/swconfig_leds.c
@@ -20,6 +20,8 @@
 #define SWCONFIG_LED_TIMER_INTERVAL	(HZ / 10)
 #define SWCONFIG_LED_NUM_PORTS		32
 
+#define led_set_brightness(_led, _switch)	led_brightness_set((_led), (_switch))
+
 struct switch_led_trigger {
 	struct led_trigger trig;
 	struct switch_dev *swdev;