staging: iio: resolver: ad2s1210: implement IIO_CHAN_INFO_SCALE
authorDavid Lechner <dlechner@baylibre.com>
Fri, 29 Sep 2023 17:23:13 +0000 (12:23 -0500)
committerJonathan Cameron <Jonathan.Cameron@huawei.com>
Sat, 30 Sep 2023 14:42:32 +0000 (15:42 +0100)
commit4623b414e68bb57ce30fe286ca932202fc438a16
treea38e673352bf1dad50bedfd1dcf9bd00c058d7ac
parent1b6eba71cae261d504d5826897a22a9a45f200d2
staging: iio: resolver: ad2s1210: implement IIO_CHAN_INFO_SCALE

This adds an implementation of IIO_CHAN_INFO_SCALE to the ad2s1210
resolver driver. This allows userspace to get the scale factor for the
raw values.

Signed-off-by: David Lechner <dlechner@baylibre.com>
Link: https://lore.kernel.org/r/20230929-ad2s1210-mainline-v3-8-fa4364281745@baylibre.com
Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
drivers/staging/iio/resolver/ad2s1210.c