staging: iio: resolver: ad2s1210: read excitation frequency from control register
authorDavid Lechner <dlechner@baylibre.com>
Fri, 29 Sep 2023 17:23:21 +0000 (12:23 -0500)
committerJonathan Cameron <Jonathan.Cameron@huawei.com>
Thu, 5 Oct 2023 13:44:05 +0000 (14:44 +0100)
commit500d7640f63d557c397f74b7d5bf8c81377b50b3
treecf64c916da050216eccb94a53c7dbf9a4f7dca38
parentde69623c7cc7b960ee5bec134707bf6567199fc9
staging: iio: resolver: ad2s1210: read excitation frequency from control register

This modifies the ad2s1210_show_fexcit() function to read the excitation
frequency from the control register. This way we don't have to keep
track of the value and don't risk returning a stale value.

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