mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-24 21:54:34 -04:00
Merge branch 'for-linus' of git://git.o-hand.com/linux-rpurdie-leds
* 'for-linus' of git://git.o-hand.com/linux-rpurdie-leds: leds: Fix led trigger locking bugs
This commit is contained in:
commit
bbce0b5ca2
3 changed files with 30 additions and 28 deletions
|
|
@ -14,6 +14,7 @@
|
|||
|
||||
#include <linux/list.h>
|
||||
#include <linux/spinlock.h>
|
||||
#include <linux/rwsem.h>
|
||||
|
||||
struct device;
|
||||
/*
|
||||
|
|
@ -43,7 +44,7 @@ struct led_classdev {
|
|||
|
||||
#ifdef CONFIG_LEDS_TRIGGERS
|
||||
/* Protects the trigger data below */
|
||||
rwlock_t trigger_lock;
|
||||
struct rw_semaphore trigger_lock;
|
||||
|
||||
struct led_trigger *trigger;
|
||||
struct list_head trig_list;
|
||||
|
|
|
|||
Loading…
Reference in a new issue