diff options
-rw-r--r-- | drivers/leds/led-class.c | 2 | ||||
-rw-r--r-- | drivers/leds/led-core.c | 4 | ||||
-rw-r--r-- | drivers/leds/led-triggers.c | 2 | ||||
-rw-r--r-- | drivers/leds/ledtrig-oneshot.c | 2 | ||||
-rw-r--r-- | drivers/leds/ledtrig-timer.c | 2 | ||||
-rw-r--r-- | include/linux/leds.h | 4 | ||||
-rw-r--r-- | net/mac80211/led.c | 2 |
7 files changed, 9 insertions, 9 deletions
diff --git a/drivers/leds/led-class.c b/drivers/leds/led-class.c index cb0a6eb72a2c..c599095bc005 100644 --- a/drivers/leds/led-class.c +++ b/drivers/leds/led-class.c | |||
@@ -222,7 +222,7 @@ void led_classdev_unregister(struct led_classdev *led_cdev) | |||
222 | #endif | 222 | #endif |
223 | 223 | ||
224 | /* Stop blinking */ | 224 | /* Stop blinking */ |
225 | led_brightness_set(led_cdev, LED_OFF); | 225 | led_set_brightness(led_cdev, LED_OFF); |
226 | 226 | ||
227 | device_unregister(led_cdev->dev); | 227 | device_unregister(led_cdev->dev); |
228 | 228 | ||
diff --git a/drivers/leds/led-core.c b/drivers/leds/led-core.c index 176961b2db6b..8a09c5fc2a6d 100644 --- a/drivers/leds/led-core.c +++ b/drivers/leds/led-core.c | |||
@@ -103,7 +103,7 @@ void led_blink_set_oneshot(struct led_classdev *led_cdev, | |||
103 | } | 103 | } |
104 | EXPORT_SYMBOL(led_blink_set_oneshot); | 104 | EXPORT_SYMBOL(led_blink_set_oneshot); |
105 | 105 | ||
106 | void led_brightness_set(struct led_classdev *led_cdev, | 106 | void led_set_brightness(struct led_classdev *led_cdev, |
107 | enum led_brightness brightness) | 107 | enum led_brightness brightness) |
108 | { | 108 | { |
109 | /* stop and clear soft-blink timer */ | 109 | /* stop and clear soft-blink timer */ |
@@ -113,4 +113,4 @@ void led_brightness_set(struct led_classdev *led_cdev, | |||
113 | 113 | ||
114 | __led_set_brightness(led_cdev, brightness); | 114 | __led_set_brightness(led_cdev, brightness); |
115 | } | 115 | } |
116 | EXPORT_SYMBOL(led_brightness_set); | 116 | EXPORT_SYMBOL(led_set_brightness); |
diff --git a/drivers/leds/led-triggers.c b/drivers/leds/led-triggers.c index f8b14dd8c2b6..57721f25d7cd 100644 --- a/drivers/leds/led-triggers.c +++ b/drivers/leds/led-triggers.c | |||
@@ -112,7 +112,7 @@ void led_trigger_set(struct led_classdev *led_cdev, struct led_trigger *trig) | |||
112 | if (led_cdev->trigger->deactivate) | 112 | if (led_cdev->trigger->deactivate) |
113 | led_cdev->trigger->deactivate(led_cdev); | 113 | led_cdev->trigger->deactivate(led_cdev); |
114 | led_cdev->trigger = NULL; | 114 | led_cdev->trigger = NULL; |
115 | led_brightness_set(led_cdev, LED_OFF); | 115 | led_set_brightness(led_cdev, LED_OFF); |
116 | } | 116 | } |
117 | if (trig) { | 117 | if (trig) { |
118 | write_lock_irqsave(&trig->leddev_list_lock, flags); | 118 | write_lock_irqsave(&trig->leddev_list_lock, flags); |
diff --git a/drivers/leds/ledtrig-oneshot.c b/drivers/leds/ledtrig-oneshot.c index 5cbab41a8da2..2c029aa5c4f1 100644 --- a/drivers/leds/ledtrig-oneshot.c +++ b/drivers/leds/ledtrig-oneshot.c | |||
@@ -177,7 +177,7 @@ static void oneshot_trig_deactivate(struct led_classdev *led_cdev) | |||
177 | } | 177 | } |
178 | 178 | ||
179 | /* Stop blinking */ | 179 | /* Stop blinking */ |
180 | led_brightness_set(led_cdev, LED_OFF); | 180 | led_set_brightness(led_cdev, LED_OFF); |
181 | } | 181 | } |
182 | 182 | ||
183 | static struct led_trigger oneshot_led_trigger = { | 183 | static struct led_trigger oneshot_led_trigger = { |
diff --git a/drivers/leds/ledtrig-timer.c b/drivers/leds/ledtrig-timer.c index 9010f7abaf2c..f774d0592204 100644 --- a/drivers/leds/ledtrig-timer.c +++ b/drivers/leds/ledtrig-timer.c | |||
@@ -104,7 +104,7 @@ static void timer_trig_deactivate(struct led_classdev *led_cdev) | |||
104 | } | 104 | } |
105 | 105 | ||
106 | /* Stop blinking */ | 106 | /* Stop blinking */ |
107 | led_brightness_set(led_cdev, LED_OFF); | 107 | led_set_brightness(led_cdev, LED_OFF); |
108 | } | 108 | } |
109 | 109 | ||
110 | static struct led_trigger timer_led_trigger = { | 110 | static struct led_trigger timer_led_trigger = { |
diff --git a/include/linux/leds.h b/include/linux/leds.h index dd93a22044bb..3aade1d8f410 100644 --- a/include/linux/leds.h +++ b/include/linux/leds.h | |||
@@ -124,7 +124,7 @@ extern void led_blink_set_oneshot(struct led_classdev *led_cdev, | |||
124 | unsigned long *delay_off, | 124 | unsigned long *delay_off, |
125 | int invert); | 125 | int invert); |
126 | /** | 126 | /** |
127 | * led_brightness_set - set LED brightness | 127 | * led_set_brightness - set LED brightness |
128 | * @led_cdev: the LED to set | 128 | * @led_cdev: the LED to set |
129 | * @brightness: the brightness to set it to | 129 | * @brightness: the brightness to set it to |
130 | * | 130 | * |
@@ -132,7 +132,7 @@ extern void led_blink_set_oneshot(struct led_classdev *led_cdev, | |||
132 | * software blink timer that implements blinking when the | 132 | * software blink timer that implements blinking when the |
133 | * hardware doesn't. | 133 | * hardware doesn't. |
134 | */ | 134 | */ |
135 | extern void led_brightness_set(struct led_classdev *led_cdev, | 135 | extern void led_set_brightness(struct led_classdev *led_cdev, |
136 | enum led_brightness brightness); | 136 | enum led_brightness brightness); |
137 | 137 | ||
138 | /* | 138 | /* |
diff --git a/net/mac80211/led.c b/net/mac80211/led.c index 1bf7903496f8..bcffa6903129 100644 --- a/net/mac80211/led.c +++ b/net/mac80211/led.c | |||
@@ -276,7 +276,7 @@ static void ieee80211_stop_tpt_led_trig(struct ieee80211_local *local) | |||
276 | 276 | ||
277 | read_lock(&tpt_trig->trig.leddev_list_lock); | 277 | read_lock(&tpt_trig->trig.leddev_list_lock); |
278 | list_for_each_entry(led_cdev, &tpt_trig->trig.led_cdevs, trig_list) | 278 | list_for_each_entry(led_cdev, &tpt_trig->trig.led_cdevs, trig_list) |
279 | led_brightness_set(led_cdev, LED_OFF); | 279 | led_set_brightness(led_cdev, LED_OFF); |
280 | read_unlock(&tpt_trig->trig.leddev_list_lock); | 280 | read_unlock(&tpt_trig->trig.leddev_list_lock); |
281 | } | 281 | } |
282 | 282 | ||