iio: adc: sc27xx: fix read big scale voltage not right
stable inclusion from stable-v5.10.122 commit 3747429834d2a01944e61d5a1b00f80fb52b0d78 category: bugfix bugzilla: https://gitee.com/openeuler/kernel/issues/I5W6OE Reference: https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/commit/?id=3747429834d2a01944e61d5a1b00f80fb52b0d78 -------------------------------- [ Upstream commit ad930a75 ] Fix wrong configuration value of SC27XX_ADC_SCALE_MASK and SC27XX_ADC_SCALE_SHIFT by spec documetation. Fixes: 5df362a6 (iio: adc: Add Spreadtrum SC27XX PMICs ADC support) Signed-off-by: NCixi Geng <cixi.geng1@unisoc.com> Reviewed-by: NBaolin Wang <baolin.wang7@gmail.com> Link: https://lore.kernel.org/r/20220419142458.884933-3-gengcixi@gmail.comSigned-off-by: NJonathan Cameron <Jonathan.Cameron@huawei.com> Signed-off-by: NSasha Levin <sashal@kernel.org> Signed-off-by: NZheng Zengkai <zhengzengkai@huawei.com> Reviewed-by: NWei Li <liwei391@huawei.com>
Showing
想要评论请 注册 或 登录