core.c (6b16f5d12202a23d875915349cc031c07fe1b3ec) | core.c (2282e125a406e09331c5a785e3df29035c99a607) |
---|---|
1/* 2 * Copyright (C) 2006 - 2007 Ivo van Doorn 3 * Copyright (C) 2007 Dmitry Torokhov 4 * Copyright 2009 Johannes Berg <johannes@sipsolutions.net> 5 * 6 * This program is free software; you can redistribute it and/or modify 7 * it under the terms of the GNU General Public License as published by 8 * the Free Software Foundation; either version 2 of the License, or --- 127 unchanged lines hidden (view full) --- 136 trigger = &rfkill->led_trigger; 137 138 if (rfkill->state & RFKILL_BLOCK_ANY) 139 led_trigger_event(trigger, LED_OFF); 140 else 141 led_trigger_event(trigger, LED_FULL); 142} 143 | 1/* 2 * Copyright (C) 2006 - 2007 Ivo van Doorn 3 * Copyright (C) 2007 Dmitry Torokhov 4 * Copyright 2009 Johannes Berg <johannes@sipsolutions.net> 5 * 6 * This program is free software; you can redistribute it and/or modify 7 * it under the terms of the GNU General Public License as published by 8 * the Free Software Foundation; either version 2 of the License, or --- 127 unchanged lines hidden (view full) --- 136 trigger = &rfkill->led_trigger; 137 138 if (rfkill->state & RFKILL_BLOCK_ANY) 139 led_trigger_event(trigger, LED_OFF); 140 else 141 led_trigger_event(trigger, LED_FULL); 142} 143 |
144static void rfkill_led_trigger_activate(struct led_classdev *led) | 144static int rfkill_led_trigger_activate(struct led_classdev *led) |
145{ 146 struct rfkill *rfkill; 147 148 rfkill = container_of(led->trigger, struct rfkill, led_trigger); 149 150 rfkill_led_trigger_event(rfkill); | 145{ 146 struct rfkill *rfkill; 147 148 rfkill = container_of(led->trigger, struct rfkill, led_trigger); 149 150 rfkill_led_trigger_event(rfkill); |
151 152 return 0; |
|
151} 152 153const char *rfkill_get_led_trigger_name(struct rfkill *rfkill) 154{ 155 return rfkill->led_trigger.name; 156} 157EXPORT_SYMBOL(rfkill_get_led_trigger_name); 158 --- 1225 unchanged lines hidden --- | 153} 154 155const char *rfkill_get_led_trigger_name(struct rfkill *rfkill) 156{ 157 return rfkill->led_trigger.name; 158} 159EXPORT_SYMBOL(rfkill_get_led_trigger_name); 160 --- 1225 unchanged lines hidden --- |