Re: [PATCH v4 07/11] Bluetooth: hci_qca: Embed bt_power in struct qca_serdev

From: Bartosz Golaszewski

Date: Fri Jul 17 2026 - 05:39:27 EST


On Thu, 16 Jul 2026 18:18:24 +0200, Loic Poulain
<loic.poulain@xxxxxxxxxxxxxxxx> said:
> 'bt_power' is allocated dynamically only for a subset of SOC types, using a
> switch on the SOC type that mirrors the one that follows it. This is about
> to become pointless as the power sequencer path (used by M.2 modules) is
> independent of the SOC type and needs 'bt_power' populated for any type.
>
> Embed 'struct qca_power' directly in 'struct qca_serdev' instead of
> allocating it separately. This drops the extra allocation and its dedicated
> SOC-type switch, and removes the need for NULL checks on the pointer.
>
> No functional change intended.
>
> Signed-off-by: Loic Poulain <loic.poulain@xxxxxxxxxxxxxxxx>
> ---

Reviewed-by: Bartosz Golaszewski <bartosz.golaszewski@xxxxxxxxxxxxxxxx>