ath10k: Use standard regulator bulk API in snoc
authorBjorn Andersson <bjorn.andersson@linaro.org>
Thu, 25 Jul 2019 17:47:54 +0000 (10:47 -0700)
committerKalle Valo <kvalo@codeaurora.org>
Tue, 17 Sep 2019 14:04:05 +0000 (17:04 +0300)
commitc56c7f24d7f88cac9aa9a30fe96adfec96c024bb
tree4373e5ffaa7e16c7a4c88928b81ee6cd4fa22a80
parentb003e7f1974eaaefcca12be56dff592481052864
ath10k: Use standard regulator bulk API in snoc

The regulator_get_optional() exists for cases where the driver needs do
behave differently depending on some regulator supply being present or
not, as we don't use this we can use the standard regulator_get() and
rely on its handling of unspecified regulators.

While the driver currently doesn't specify any loads the regulator
framework was updated last year to only account for load of enabled
regulators, so should the need appear it's better to apply load numbers
during initialization that dynamically.

With this the regulator wrappers have been reduced the become identical
to the standard bulk API provided by the regulator framework, so use
these instead of rolling our own.

Signed-off-by: Bjorn Andersson <bjorn.andersson@linaro.org>
Signed-off-by: Kalle Valo <kvalo@codeaurora.org>
drivers/net/wireless/ath/ath10k/snoc.c
drivers/net/wireless/ath/ath10k/snoc.h