Skip to content
Unverified Commit c6839641 authored by Pi-Hsun Shih's avatar Pi-Hsun Shih Committed by Mark Brown
Browse files

ASoC: mediatek: Reduce repititive code on mtk_regmap_update_bits.



Change the signature of mtk_regmap_update_bits to also take a shift, and
warn when reg >= 0 but shift < 0. This reduce the code repetition
on the calling side, and prevent future UBSAN warning when some of the
xxx_shift and xxx_reg are both set to -1.

Signed-off-by: default avatarPi-Hsun Shih <pihsun@chromium.org>
Signed-off-by: default avatarMark Brown <broonie@kernel.org>
parent ed1666f6
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment