adc: exynos-adc: Fix wrong bit operation used to stop the ADC
When stopping the ADC_V2_CON1_STC_EN should be cleared. Signed-off-by: Krzysztof Kozlowski <krzk@kernel.org> Reviewed-by: Lukasz Majewski <lukma@denx.de> Tested-by: Anand Moon <linux.amoon@gmail.com> Signed-off-by: Minkyu Kang <mk7.kang@samsung.com>
This commit is contained in:
parent
e8e3f2d2d4
commit
6e74c6af32
@ -62,7 +62,7 @@ int exynos_adc_stop(struct udevice *dev)
|
||||
|
||||
/* Stop conversion */
|
||||
cfg = readl(®s->con1);
|
||||
cfg |= ~ADC_V2_CON1_STC_EN;
|
||||
cfg &= ~ADC_V2_CON1_STC_EN;
|
||||
|
||||
writel(cfg, ®s->con1);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user