]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commitd65023cd1bd2d3f40599b64c2b941ea5ed955e0c
treefdde62ab2e6317fc85e1ea5d7fe8647cec8328cd
parent943505c7eea90450637322c0e53715f9b2fbb403
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