staging: iio: resolver: ad2s1210: convert fexcit to channel attribute
authorDavid Lechner <dlechner@baylibre.com>
Fri, 6 Oct 2023 00:50:20 +0000 (19:50 -0500)
committerJonathan Cameron <Jonathan.Cameron@huawei.com>
Wed, 11 Oct 2023 14:54:40 +0000 (15:54 +0100)
commit7dde2719fb3892ad69da4b1c5790bac5ea958a09
treed3d08fe35ec371fd5e9b5afa2b0a86446009d1f7
parentbae023765199bef243b49c0f8860a3290a5c9f6d
staging: iio: resolver: ad2s1210: convert fexcit to channel attribute

The ad2s1210 driver has a device-specific attribute `fexcit` for setting
the frequency of the excitation output. This converts it to a channel in
order to use standard IIO ABI.

The excitation frequency is an analog output that generates a sine wave.
Only the frequency is configurable. According to the datasheet, the
specified range of the excitation frequency is from 2 kHz to 20 kHz and
can be set in increments of 250 Hz.

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