]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commitda58727cbd8d3d05e352695b3f2a7b334a6744bf
tree4373e5ffaa7e16c7a4c88928b81ee6cd4fa22a80
parent800b3744e10c8ef901afd110d2d0a39ee6b220bc
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