]> git.baikalelectronics.ru Git - kernel.git/commit
ASoC: wm5102: Use get_unaligned_be16() for dac_comp_coeff
authorRichard Fitzgerald <rf@opensource.cirrus.com>
Thu, 15 Oct 2020 10:27:03 +0000 (11:27 +0100)
committerMark Brown <broonie@kernel.org>
Mon, 26 Oct 2020 18:37:05 +0000 (18:37 +0000)
commit55f0d73f6d48c003411dd1621f2d27b45c126f25
tree48686273d083e7a5c3b67b7c312f970b396ba185
parentf75ff79a9fb2b57bb08fbde98428673099cb6c2f
ASoC: wm5102: Use get_unaligned_be16() for dac_comp_coeff

Replace the two-step copy-and-convert in
wm5102_out_comp_coeff_put() with get_unaligned_be16(). Apart from
looking nicer, it avoids this sparse warning:

wm5102.c:687:35: sparse: sparse: cast to restricted __be16

Signed-off-by: Richard Fitzgerald <rf@opensource.cirrus.com>
Link: https://lore.kernel.org/r/20201015102703.24622-1-rf@opensource.cirrus.com
Signed-off-by: Mark Brown <broonie@kernel.org>
sound/soc/codecs/wm5102.c