]> git.baikalelectronics.ru Git - kernel.git/commit
Bluetooth: hci_qca: Simplify determination of serial clock on/off state from votes
authorMatthias Kaehlcke <mka@chromium.org>
Sat, 6 Jun 2020 16:53:06 +0000 (09:53 -0700)
committerMarcel Holtmann <marcel@holtmann.org>
Mon, 8 Jun 2020 08:09:37 +0000 (10:09 +0200)
commit6bf51a9aba09882f1f0bf0a3a5c5d66fb7d0d5ed
tree99408333ffedea5520292f55f1d57d8f7f8e7c26
parentb23ff3bfe061a6d64c526409f672ff7d9f8c9562
Bluetooth: hci_qca: Simplify determination of serial clock on/off state from votes

The serial clocks should be on when there is a vote for at least one
of the clocks (RX or TX), and off when there is no 'on' vote. The
current logic to determine the combined state is a bit redundant
in the code paths for different types of votes, use a single
statement in the common path instead.

Signed-off-by: Matthias Kaehlcke <mka@chromium.org>
Signed-off-by: Marcel Holtmann <marcel@holtmann.org>
drivers/bluetooth/hci_qca.c