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:
Jack Pham <jackp@codeaurora.org>
Loading
Please register or sign in to comment