Bluetooth: hci_qca: Use regulator bulk enable/disable
authorBjorn Andersson <bjorn.andersson@linaro.org>
Fri, 18 Oct 2019 05:24:03 +0000 (22:24 -0700)
committerMarcel Holtmann <marcel@holtmann.org>
Thu, 17 Oct 2019 09:12:20 +0000 (11:12 +0200)
commit163d42fa83c6090071698533d33babd7bbf97147
treefdde62ab2e6317fc85e1ea5d7fe8647cec8328cd
parentf2edd66e515b9944a7e516510a54959e5004181b
Bluetooth: hci_qca: Use regulator bulk enable/disable

With the regulator_set_load() and regulator_set_voltage() out of the
enable/disable code paths the code can now use the standard
regulator bulk enable/disable API.

By cloning num_vregs into struct qca_power there's no need to lug around
a reference to the struct qca_vreg_data, which further simplifies
qca_power_setup().

Signed-off-by: Bjorn Andersson <bjorn.andersson@linaro.org>
Signed-off-by: Marcel Holtmann <marcel@holtmann.org>
drivers/bluetooth/hci_qca.c