diff options
author | Bartosz Golaszewski <bgolaszewski@baylibre.com> | 2019-09-02 17:13:32 +0200 |
---|---|---|
committer | Mark Brown <broonie@kernel.org> | 2019-09-03 12:37:16 +0100 |
commit | d072cb263f9e0ce3f8f6089c17e3466885971fa8 (patch) | |
tree | 0e2c470ba9c813eac9ed6afe9a68897a0b5baee3 | |
parent | d0087e72710ca7d1b309bf427286da58418ea89e (diff) | |
download | linux-d072cb263f9e0ce3f8f6089c17e3466885971fa8.tar.bz2 |
regulator: add missing 'static inline' to a helper's stub
The build fails when CONFIG_REGULATOR is not selected because the stub
for regulator_bulk_set_supply_names() is missing the 'static inline'
attribute.
Signed-off-by: Bartosz Golaszewski <bgolaszewski@baylibre.com>
Link: https://lore.kernel.org/r/20190902151332.28058-1-brgl@bgdev.pl
Signed-off-by: Mark Brown <broonie@kernel.org>
-rw-r--r-- | include/linux/regulator/consumer.h | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/include/linux/regulator/consumer.h b/include/linux/regulator/consumer.h index 6d2181a76987..337a46391527 100644 --- a/include/linux/regulator/consumer.h +++ b/include/linux/regulator/consumer.h @@ -586,9 +586,10 @@ static inline int regulator_list_voltage(struct regulator *regulator, unsigned s return -EINVAL; } -void regulator_bulk_set_supply_names(struct regulator_bulk_data *consumers, - const char *const *supply_names, - unsigned int num_supplies) +static inline void +regulator_bulk_set_supply_names(struct regulator_bulk_data *consumers, + const char *const *supply_names, + unsigned int num_supplies) { } |