]> git.ipfire.org Git - thirdparty/linux.git/commit
iio: adc: ti-ads1298: Remove unnecessary CONFIG2 write during init
authorMd Shofiqul Islam <shofiqtest@gmail.com>
Sat, 9 May 2026 15:19:59 +0000 (18:19 +0300)
committerJonathan Cameron <jic23@kernel.org>
Sun, 31 May 2026 09:59:38 +0000 (10:59 +0100)
commit01437ab5111f57005be54005f5b575dc06cb682e
tree1ba18c7eb7067e95af373f6bc4a39109c9aa3a7f
parent5d7b3df5c1be8f46c2d3eabd1c1fd7b27294cbd3
iio: adc: ti-ads1298: Remove unnecessary CONFIG2 write during init

The driver was enabling the internal test signal (INT_TEST), double
amplitude (TEST_AMP), and fast frequency (TEST_FREQ_FAST) bits in
CONFIG2 during initialization. These bits activate an internal square
wave generator intended for device testing and calibration, not normal
ECG operation.

CONFIG2 defaults to having only the RESERVED bit set after reset, which
is the correct value for normal operation. Remove the write entirely
since it would just be writing the reset default value.

Suggested-by: Mike Looijmans <mike.looijmans@topic.nl>
Signed-off-by: Md Shofiqul Islam <shofiqtest@gmail.com>
Signed-off-by: Jonathan Cameron <jic23@kernel.org>
drivers/iio/adc/ti-ads1298.c