staging: iio: resolver: ad2s1210: implement hysteresis as channel attr
authorDavid Lechner <dlechner@baylibre.com>
Fri, 6 Oct 2023 00:50:19 +0000 (19:50 -0500)
committerJonathan Cameron <Jonathan.Cameron@huawei.com>
Wed, 11 Oct 2023 14:54:40 +0000 (15:54 +0100)
commitbae023765199bef243b49c0f8860a3290a5c9f6d
tree50c6b486a671ab9a7a3ed88652cce68afd3f25b4
parentd97d11c70f25726fc21b2b2f1a26e16ac96a8ccf
staging: iio: resolver: ad2s1210: implement hysteresis as channel attr

The AD2S1210 resolver has a hysteresis feature that can be used to
prevent flicker in the LSB of the position register. This can be either
enabled or disabled. Disabling hysteresis is useful for increasing
precision by oversampling.

Signed-off-by: David Lechner <dlechner@baylibre.com>
Link: https://lore.kernel.org/r/20231005-ad2s1210-mainline-v4-2-ec00746840fc@baylibre.com
Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
drivers/staging/iio/resolver/ad2s1210.c