Re: [PATCH] HID: Replace semaphore driver_lock with mutex

2017-06-08 Thread Arnd Bergmann
On Thu, Jun 8, 2017 at 12:01 PM, Binoy Jayan wrote: > The semaphore 'driver_lock' is used as a simple mutex, so > it should be written as one. Semaphores are going away in the future. > > Signed-off-by: Binoy Jayan > --- > > This patch is part of a bigger effort to eliminate unwanted > semaphores

[PATCH] HID: Replace semaphore driver_lock with mutex

2017-06-08 Thread Binoy Jayan
The semaphore 'driver_lock' is used as a simple mutex, so it should be written as one. Semaphores are going away in the future. Signed-off-by: Binoy Jayan --- This patch is part of a bigger effort to eliminate unwanted semaphores from the linux kernel. drivers/hid/hid-core.c | 10 +- i