android_kernel_xiaomi_sm8350/drivers/uwb
Greg Kroah-Hartman 8e9394ce24 Driver core: create lock/unlock functions for struct device
In the future, we are going to be changing the lock type for struct
device (once we get the lockdep infrastructure properly worked out)  To
make that changeover easier, and to possibly burry the lock in a
different part of struct device, let's create some functions to lock and
unlock a device so that no out-of-core code needs to be changed in the
future.

This patch creates the device_lock/unlock/trylock() functions, and
converts all in-tree users to them.

Cc: Thomas Gleixner <tglx@linutronix.de>
Cc: Jean Delvare <khali@linux-fr.org>
Cc: Dave Young <hidave.darkstar@gmail.com>
Cc: Ming Lei <tom.leiming@gmail.com>
Cc: Jiri Kosina <jkosina@suse.cz>
Cc: Phil Carmody <ext-phil.2.carmody@nokia.com>
Cc: Arjan van de Ven <arjan@linux.intel.com>
Cc: Cornelia Huck <cornelia.huck@de.ibm.com>
Cc: Rafael J. Wysocki <rjw@sisk.pl>
Cc: Pavel Machek <pavel@ucw.cz>
Cc: Len Brown <len.brown@intel.com>
Cc: Magnus Damm <damm@igel.co.jp>
Cc: Alan Stern <stern@rowland.harvard.edu>
Cc: Randy Dunlap <randy.dunlap@oracle.com>
Cc: Stefan Richter <stefanr@s5r6.in-berlin.de>
Cc: David Brownell <dbrownell@users.sourceforge.net>
Cc: Vegard Nossum <vegard.nossum@gmail.com>
Cc: Jesse Barnes <jbarnes@virtuousgeek.org>
Cc: Alex Chiang <achiang@hp.com>
Cc: Kenji Kaneshige <kaneshige.kenji@jp.fujitsu.com>
Cc: Andrew Morton <akpm@linux-foundation.org>
Cc: Andrew Patterson <andrew.patterson@hp.com>
Cc: Yu Zhao <yu.zhao@intel.com>
Cc: Dominik Brodowski <linux@dominikbrodowski.net>
Cc: Samuel Ortiz <sameo@linux.intel.com>
Cc: Wolfram Sang <w.sang@pengutronix.de>
Cc: CHENG Renquan <rqcheng@smu.edu.sg>
Cc: Oliver Neukum <oliver@neukum.org>
Cc: Frans Pop <elendil@planet.nl>
Cc: David Vrabel <david.vrabel@csr.com>
Cc: Kay Sievers <kay.sievers@vrfy.org>
Cc: Sarah Sharp <sarah.a.sharp@linux.intel.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
2010-03-07 17:04:52 -08:00
..
i1480 tree-wide: fix assorted typos all over the place 2009-12-04 15:39:55 +01:00
wlp Driver core: Constify struct sysfs_ops in struct kobj_type 2010-03-07 17:04:49 -08:00
address.c
allocator.c
beacon.c
driver.c driver-core: Add attribute argument to class_attribute show/store 2010-03-07 17:04:48 -08:00
drp-avail.c
drp-ie.c
drp.c
est.c
hwa-rc.c
ie-rcv.c
ie.c
Kconfig
lc-dev.c driver model: constify attribute groups 2009-09-15 09:50:47 -07:00
lc-rc.c
Makefile
neh.c tree-wide: fix a very frequent spelling mistake 2009-11-09 09:40:54 +01:00
pal.c
radio.c
reset.c
rsv.c
scan.c
umc-bus.c Driver core: create lock/unlock functions for struct device 2010-03-07 17:04:52 -08:00
umc-dev.c
umc-drv.c
uwb-debug.c const: constify remaining file_operations 2009-10-01 16:11:11 -07:00
uwb-internal.h Driver core: create lock/unlock functions for struct device 2010-03-07 17:04:52 -08:00
uwbd.c
whc-rc.c headers: remove sched.h from interrupt.h 2009-10-11 11:20:58 -07:00
whci.c