Skip to content

Commit

Permalink
[SQUASHME] ASoC: SOF: hda: fix sparse warnings.
Browse files Browse the repository at this point in the history
Signed-off-by: Liam Girdwood <liam.r.girdwood@linux.intel.com>
  • Loading branch information
lrgirdwo committed Jul 5, 2018
1 parent 0290ba7 commit 7de8df0
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions sound/soc/sof/intel/hda.c
Original file line number Diff line number Diff line change
Expand Up @@ -77,12 +77,12 @@ void hda_dsp_block_write(struct snd_sof_dev *sdev, u32 offset, void *src,
n = size % 4;

/* __iowrite32_copy use 32bit size values so divide by 4 */
__iowrite32_copy((void *)dest, src, m);
__iowrite32_copy(dest, src, m);

if (n) {
for (i = 0; i < n; i++)
tmp |= (u32)*(src_byte + m * 4 + i) << (i * 8);
__iowrite32_copy((void *)(dest + m * 4), &tmp, 1);
__iowrite32_copy(dest + m * 4, &tmp, 1);
}
}

Expand Down

0 comments on commit 7de8df0

Please sign in to comment.