regulator: provide regulator_bulk_set_supply_names()
authorBartosz Golaszewski <bgolaszewski@baylibre.com>
Fri, 30 Aug 2019 07:17:37 +0000 (09:17 +0200)
committerMark Brown <broonie@kernel.org>
Mon, 2 Sep 2019 11:49:42 +0000 (12:49 +0100)
commitd0087e72710ca7d1b309bf427286da58418ea89e
tree3924b3b46b1821c92d6350bbe0baea695c53dab8
parentbaedad4c35ce35973263f8991d288c280f4bd05d
regulator: provide regulator_bulk_set_supply_names()

There are many regulator consumers who - before using the regulator
bulk functions - set the supply names in regulator_bulk_data using
a for loop.

Let's provide a simple helper in the consumer API that allows users
to do the same with a single function call.

Signed-off-by: Bartosz Golaszewski <bgolaszewski@baylibre.com>
Link: https://lore.kernel.org/r/20190830071740.4267-2-brgl@bgdev.pl
Signed-off-by: Mark Brown <broonie@kernel.org>
drivers/regulator/helpers.c
include/linux/regulator/consumer.h