1
0
This repository has been archived on 2024-07-22. You can view files and clone it, but cannot push or open issues or pull requests.
ZyXEL_PMG5617GA/target/linux/generic/patches-3.3/a01-swconfig_leds-define-leds_set_brightness.patch
2022-11-27 10:16:14 +00:00

12 lines
346 B
Diff

--- 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;