File tree Expand file tree Collapse file tree 2 files changed +0
-30
lines changed Expand file tree Collapse file tree 2 files changed +0
-30
lines changed Original file line number Diff line number Diff line change @@ -269,19 +269,6 @@ void led_trigger_set_default(struct led_classdev *led_cdev)
269
269
}
270
270
EXPORT_SYMBOL_GPL (led_trigger_set_default );
271
271
272
- void led_trigger_rename_static (const char * name , struct led_trigger * trig )
273
- {
274
- /* new name must be on a temporary string to prevent races */
275
- BUG_ON (name == trig -> name );
276
-
277
- down_write (& triggers_list_lock );
278
- /* this assumes that trig->name was originaly allocated to
279
- * non constant storage */
280
- strcpy ((char * )trig -> name , name );
281
- up_write (& triggers_list_lock );
282
- }
283
- EXPORT_SYMBOL_GPL (led_trigger_rename_static );
284
-
285
272
/* LED Trigger Interface */
286
273
287
274
int led_trigger_register (struct led_trigger * trig )
Original file line number Diff line number Diff line change @@ -527,23 +527,6 @@ static inline void *led_get_trigger_data(struct led_classdev *led_cdev)
527
527
return led_cdev -> trigger_data ;
528
528
}
529
529
530
- /**
531
- * led_trigger_rename_static - rename a trigger
532
- * @name: the new trigger name
533
- * @trig: the LED trigger to rename
534
- *
535
- * Change a LED trigger name by copying the string passed in
536
- * name into current trigger name, which MUST be large
537
- * enough for the new string.
538
- *
539
- * Note that name must NOT point to the same string used
540
- * during LED registration, as that could lead to races.
541
- *
542
- * This is meant to be used on triggers with statically
543
- * allocated name.
544
- */
545
- void led_trigger_rename_static (const char * name , struct led_trigger * trig );
546
-
547
530
#define module_led_trigger (__led_trigger ) \
548
531
module_driver(__led_trigger, led_trigger_register, \
549
532
led_trigger_unregister)
You can’t perform that action at this time.
0 commit comments