aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/power/power_supply_leds.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/power/power_supply_leds.c')
-rw-r--r--drivers/power/power_supply_leds.c8
1 files changed, 0 insertions, 8 deletions
diff --git a/drivers/power/power_supply_leds.c b/drivers/power/power_supply_leds.c
index 7232490bb595..7f8f3590b02e 100644
--- a/drivers/power/power_supply_leds.c
+++ b/drivers/power/power_supply_leds.c
@@ -40,8 +40,6 @@ static void power_supply_update_bat_leds(struct power_supply *psy)
40 led_trigger_event(psy->full_trig, LED_OFF); 40 led_trigger_event(psy->full_trig, LED_OFF);
41 break; 41 break;
42 } 42 }
43
44 return;
45} 43}
46 44
47static int power_supply_create_bat_triggers(struct power_supply *psy) 45static int power_supply_create_bat_triggers(struct power_supply *psy)
@@ -97,7 +95,6 @@ static void power_supply_remove_bat_triggers(struct power_supply *psy)
97 kfree(psy->full_trig_name); 95 kfree(psy->full_trig_name);
98 kfree(psy->charging_trig_name); 96 kfree(psy->charging_trig_name);
99 kfree(psy->charging_full_trig_name); 97 kfree(psy->charging_full_trig_name);
100 return;
101} 98}
102 99
103/* Generated power specific LEDs triggers. */ 100/* Generated power specific LEDs triggers. */
@@ -115,8 +112,6 @@ static void power_supply_update_gen_leds(struct power_supply *psy)
115 led_trigger_event(psy->online_trig, LED_FULL); 112 led_trigger_event(psy->online_trig, LED_FULL);
116 else 113 else
117 led_trigger_event(psy->online_trig, LED_OFF); 114 led_trigger_event(psy->online_trig, LED_OFF);
118
119 return;
120} 115}
121 116
122static int power_supply_create_gen_triggers(struct power_supply *psy) 117static int power_supply_create_gen_triggers(struct power_supply *psy)
@@ -145,7 +140,6 @@ static void power_supply_remove_gen_triggers(struct power_supply *psy)
145{ 140{
146 led_trigger_unregister_simple(psy->online_trig); 141 led_trigger_unregister_simple(psy->online_trig);
147 kfree(psy->online_trig_name); 142 kfree(psy->online_trig_name);
148 return;
149} 143}
150 144
151/* Choice what triggers to create&update. */ 145/* Choice what triggers to create&update. */
@@ -156,7 +150,6 @@ void power_supply_update_leds(struct power_supply *psy)
156 power_supply_update_bat_leds(psy); 150 power_supply_update_bat_leds(psy);
157 else 151 else
158 power_supply_update_gen_leds(psy); 152 power_supply_update_gen_leds(psy);
159 return;
160} 153}
161 154
162int power_supply_create_triggers(struct power_supply *psy) 155int power_supply_create_triggers(struct power_supply *psy)
@@ -172,5 +165,4 @@ void power_supply_remove_triggers(struct power_supply *psy)
172 power_supply_remove_bat_triggers(psy); 165 power_supply_remove_bat_triggers(psy);
173 else 166 else
174 power_supply_remove_gen_triggers(psy); 167 power_supply_remove_gen_triggers(psy);
175 return;
176} 168}