android_kernel_xiaomi_sm8350/drivers/usb/misc
Richard Purdie 28ee086d5b backlight: Fix external uses of backlight internal semaphore
backlight_device->sem has a very specific use as documented in the
header file. The external users of this are using it for a different
reason, to serialise access to the update_status() method.

backlight users were supposed to implement their own internal
serialisation of update_status() if needed but everyone is doing
things differently and incorrectly. Therefore add a global mutex to
take care of serialisation for everyone, once and for all.

Locking for get_brightness remains optional since most users don't
need it.

Also update the lcd class in a similar way.

Signed-off-by: Richard Purdie <rpurdie@rpsys.net>
2007-02-20 08:38:45 +00:00
..
sisusbvga [PATCH] remove many unneeded #includes of sched.h 2007-02-14 08:09:54 -08:00
adutux.c [PATCH] mark struct file_operations const 6 2007-02-12 09:48:45 -08:00
appledisplay.c backlight: Fix external uses of backlight internal semaphore 2007-02-20 08:38:45 +00:00
auerswald.c USB AUERSWALD: replace kmalloc+memset with kzalloc 2006-12-20 10:14:26 -08:00
berry_charge.c USB: Driver to charge USB blackberry devices 2007-02-16 15:32:17 -08:00
cypress_cy7c63.c
cytherm.c
emi26_fw.h
emi26.c
emi62_fw_m.h
emi62_fw_s.h
emi62.c
ftdi-elan.c [PATCH] mark struct file_operations const 6 2007-02-12 09:48:45 -08:00
idmouse.c USB: Remove unneeded void * casts in idmouse.c 2007-02-07 15:44:32 -08:00
Kconfig USB: Driver to charge USB blackberry devices 2007-02-16 15:32:17 -08:00
ldusb.c
legousbtower.c usb: legousbtower free kill urb cleanup 2006-12-01 14:23:34 -08:00
Makefile USB: Driver to charge USB blackberry devices 2007-02-16 15:32:17 -08:00
phidget.c
phidget.h
phidgetkit.c [PATCH] slab: remove SLAB_ATOMIC 2006-12-07 08:39:24 -08:00
phidgetmotorcontrol.c [PATCH] slab: remove SLAB_ATOMIC 2006-12-07 08:39:24 -08:00
phidgetservo.c USB: Fix oops in PhidgetServo 2006-12-20 10:13:22 -08:00
rio500_usb.h
rio500.c USB: mutexification of rio500 2007-02-07 15:44:32 -08:00
trancevibrator.c USB: fix transvibrator disconnect race 2006-12-20 10:13:23 -08:00
usb_u132.h Merge master.kernel.org:/pub/scm/linux/kernel/git/gregkh/usb-2.6 2006-12-01 16:41:58 -08:00
usblcd.c
usbled.c
usbtest.c [PATCH] slab: remove SLAB_KERNEL 2006-12-07 08:39:24 -08:00
uss720.c [PATCH] Fix numerous kcalloc() calls, convert to kzalloc() 2006-12-13 09:05:52 -08:00