Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Skip to content
Commit bb10e08c authored by Jack Pham's avatar Jack Pham
Browse files

usb: usb_bam: use correct props structure



usb_bam_init() prepares the sps_bam_props structure prior
to registering it with the SPS driver. However it is
inadvertently making a local copy due to the assignment

   struct sps_bam_props props = ctx.usb_bam_sps.usb_props;

such that when the function exits, these values are lost.
This is not causing a functional problem, as the copy in
ctx.usb_bam_sps is not used outside of this function, but
for debugging purposes it would be useful to inspect the
values later. Fix this by simply using a pointer to assign
to ctx.usb_bam_sps.usb_props directly.

Also fix a debug printk that appears in a switch case statement,
as it does not apply to the fallen-through case above.

Change-Id: Idf6a3d33a206a0ab55e5cb3bfa25a2ef38b038a9
Signed-off-by: default avatarJack Pham <jackp@codeaurora.org>
parent 20c34894
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment