Home
last modified time | relevance | path

Searched hist:c6839641 (Results 1 – 1 of 1) sorted by relevance

/openbmc/linux/sound/soc/mediatek/common/
H A Dmtk-afe-fe-dai.cc6839641 Wed Mar 06 03:09:03 CST 2019 Pi-Hsun Shih <pihsun@chromium.org> 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>
c6839641 Wed Mar 06 03:09:03 CST 2019 Pi-Hsun Shih <pihsun@chromium.org> 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>