summaryrefslogtreecommitdiff
path: root/sound/soc/codecs/cs4349.h
diff options
context:
space:
mode:
authorPi-Hsun Shih <pihsun@chromium.org>2019-03-06 12:09:03 +0300
committerMark Brown <broonie@kernel.org>2019-03-19 15:51:20 +0300
commitc6839641532f95aca2246f7c116565b86b8ce878 (patch)
tree0f5b12ac0232ea92dd06c94dd474e62d79151d45 /sound/soc/codecs/cs4349.h
parented1666f6867059e1ed4e2e565a1c87c5580f1b38 (diff)
downloadlinux-c6839641532f95aca2246f7c116565b86b8ce878.tar.xz
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: Pi-Hsun Shih <pihsun@chromium.org> Signed-off-by: Mark Brown <broonie@kernel.org>
Diffstat (limited to 'sound/soc/codecs/cs4349.h')
0 files changed, 0 insertions, 0 deletions