diff options
| author | Shrikant Raskar <raskar.shree97@gmail.com> | 2026-01-28 23:21:50 +0530 |
|---|---|---|
| committer | Jonathan Cameron <Jonathan.Cameron@huawei.com> | 2026-01-29 17:47:56 +0000 |
| commit | 51eedb3a323ae87872c4cb60cc6abed696b0a822 (patch) | |
| tree | c13e06fba2148156e2dca74ed396f28a04632c9b /tools/perf/lib/Documentation/tutorial/git@git.tavy.me:linux.git | |
| parent | 36bff1842330b3eddaf5a7977eb00a724fc42c27 (diff) | |
iio: proximity: rfd77402: Use kernel helper for result polling
Replace the manually written polling loop with read_poll_timeout(),
the kernel's standard helper for waiting on hardware status.This
makes the code easier to read.
Move the polling logic into a dedicated helper function, as it will
be reused by future updates.
Reviewed-by: Andy Shevchenko <andriy.shevchenko@intel.com>
Signed-off-by: Shrikant Raskar <raskar.shree97@gmail.com>
Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
Diffstat (limited to 'tools/perf/lib/Documentation/tutorial/git@git.tavy.me:linux.git')
0 files changed, 0 insertions, 0 deletions
