regmap: make lock/unlock functions customizable
authorDavide Ciminaghi <ciminaghi@gnudd.com>
Tue, 16 Oct 2012 13:56:59 +0000 (15:56 +0200)
committerMark Brown <broonie@opensource.wolfsonmicro.com>
Wed, 17 Oct 2012 07:52:02 +0000 (16:52 +0900)
commit0d4529c534c1c664f25088eb5f5b4d7ce0ee2510
tree5b080ef0a319b90fbcb0ab4eb768aae54851915e
parentddffeb8c4d0331609ef2581d84de4d763607bd37
regmap: make lock/unlock functions customizable

It is sometimes convenient for a regmap user to override the standard
regmap lock/unlock functions with custom functions.
For instance this can be useful in case an already existing spinlock
or mutex has to be used for locking a set of registers instead of the
internal regmap spinlock/mutex.
Note that the fast_io field of struct regmap_bus is ignored in case
custom locking functions are used.

Signed-off-by: Davide Ciminaghi <ciminaghi@gnudd.com>
Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
drivers/base/regmap/internal.h
drivers/base/regmap/regmap.c
include/linux/regmap.h