diff options
author | David Lechner <dlechner@baylibre.com> | 2023-10-10 23:12:33 +0200 |
---|---|---|
committer | Jonathan Cameron <Jonathan.Cameron@huawei.com> | 2023-10-12 09:56:08 +0200 |
commit | 27ffa2216acfab3527064ec13666f35d70f76045 (patch) | |
tree | e5832bb8b82159c036f272a264bd681c2185c86c /drivers/hte | |
parent | staging: iio: resolver: ad2s1210: remove fault attribute (diff) | |
download | linux-27ffa2216acfab3527064ec13666f35d70f76045.tar.xz linux-27ffa2216acfab3527064ec13666f35d70f76045.zip |
staging: iio: resolver: ad2s1210: refactor sample toggle
This refactors the sample line toggle in the ad2s1210 resolver driver
to a separate function. The sample has some timing requirements, so
this ensures that it is always done the same way, both in the existing
call sites and any future usage.
Previously, the sample line was kept on for the duration of the read,
but this is not necessary. Data is latched in on the rising edge and
after the specified delay the state of the sample line does not matter.
Signed-off-by: David Lechner <dlechner@baylibre.com>
Link: https://lore.kernel.org/r/20231010-ad2s1210-mainline-v5-1-35a0f6ffa04a@baylibre.com
Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
Diffstat (limited to 'drivers/hte')
0 files changed, 0 insertions, 0 deletions