Skip to content

Commit

Permalink
regmap: rename regmap_lock_unlock_empty() to regmap_lock_unlock_none()
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Bartosz Golaszewski authored and Mark Brown committed Dec 13, 2017
1 parent c9b41fc commit 81e30b1
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions drivers/base/regmap/regmap.c
Original file line number Diff line number Diff line change
Expand Up @@ -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)
{

}
Expand Down Expand Up @@ -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;
Expand Down

0 comments on commit 81e30b1

Please sign in to comment.