diff options
author | Bartosz Golaszewski <brgl@bgdev.pl> | 2017-12-13 10:28:10 +0100 |
---|---|---|
committer | Mark Brown <broonie@kernel.org> | 2017-12-13 13:16:35 +0100 |
commit | 81e30b189f593afbf10a7bf47f18f030f8aea3b5 (patch) | |
tree | c0d3612aa8813abb2354a9a78f27b3cca26749c8 /drivers/base | |
parent | regmap: allow to disable all locking mechanisms (diff) | |
download | linux-81e30b189f593afbf10a7bf47f18f030f8aea3b5.tar.xz linux-81e30b189f593afbf10a7bf47f18f030f8aea3b5.zip |
regmap: rename regmap_lock_unlock_empty() to regmap_lock_unlock_none()
Minor naming convention tweak.
Suggested-by: Andy Shevchenko <andy.shevchenko@gmail.com>
Signed-off-by: Bartosz Golaszewski <brgl@bgdev.pl>
Signed-off-by: Mark Brown <broonie@kernel.org>
Diffstat (limited to 'drivers/base')
-rw-r--r-- | drivers/base/regmap/regmap.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/base/regmap/regmap.c b/drivers/base/regmap/regmap.c index 72917b2fc10e..54b1aa371c61 100644 --- a/drivers/base/regmap/regmap.c +++ b/drivers/base/regmap/regmap.c @@ -459,7 +459,7 @@ static void regmap_unlock_hwlock_irqrestore(void *__map) } #endif -static void regmap_lock_unlock_empty(void *__map) +static void regmap_lock_unlock_none(void *__map) { } @@ -675,7 +675,7 @@ struct regmap *__regmap_init(struct device *dev, } if (config->disable_locking) { - map->lock = map->unlock = regmap_lock_unlock_empty; + map->lock = map->unlock = regmap_lock_unlock_none; } else if (config->lock && config->unlock) { map->lock = config->lock; map->unlock = config->unlock; |