staging: iio: resolver: ad2s1210: rename DOS reset min/max attrs
authorDavid Lechner <dlechner@baylibre.com>
Fri, 6 Oct 2023 00:50:28 +0000 (19:50 -0500)
committerJonathan Cameron <Jonathan.Cameron@huawei.com>
Wed, 11 Oct 2023 14:54:41 +0000 (15:54 +0100)
commit86a333c59806bc170156209e9a52c6393d00c652
tree7c13263af21e0ef3d4947d3d1ae3bbafdda2df9c
parente025cb2c684827ffde62f99dd7c911540136b347
staging: iio: resolver: ad2s1210: rename DOS reset min/max attrs

The AD2S1210 has a programmable threshold for the degradation of signal
(DOS) mismatch fault. This fault is triggered when the difference in
amplitude between the sine and cosine inputs exceeds the threshold.

The DOS reset min/max registers on the chip provide initial values
for internal tracking of the min/max of the monitor signal after the
fault register is cleared.

This patch converts the custom device DOS reset min/max threshold
attributes custom event attributes on the monitor signal channel.

The attributes now use millivolts instead of the raw register value in
accordance with the IIO ABI.

Signed-off-by: David Lechner <dlechner@baylibre.com>
Link: https://lore.kernel.org/r/20231005-ad2s1210-mainline-v4-11-ec00746840fc@baylibre.com
Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
drivers/staging/iio/Documentation/sysfs-bus-iio-resolver-ad2s1210 [new file with mode: 0644]
drivers/staging/iio/resolver/ad2s1210.c