swconfig_trig_set_brightness(struct swconfig_trig_data *trig_data,
enum led_brightness brightness)
{
- led_brightness_set(trig_data->led_cdev, brightness);
+ led_set_brightness(trig_data->led_cdev, brightness);
trig_data->prev_brightness = brightness;
}
link = !!(sw_trig->port_link & port_mask);
if (!link) {
if (link != trig_data->prev_link)
- led_brightness_set(trig_data->led_cdev, LED_OFF);
+ led_set_brightness(trig_data->led_cdev, LED_OFF);
} else {
unsigned long traffic;
int i;
--- /dev/null
+--- 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;