diff options
author | João Paulo Gonçalves <[email protected]> | 2024-06-14 11:36:58 -0300 |
---|---|---|
committer | Jonathan Cameron <[email protected]> | 2024-06-17 20:49:02 +0100 |
commit | 74cb21576ea5247efbbb7d92f71cafee12159cd9 (patch) | |
tree | 36b6cf982b48177f2169ba8477d9afb2152ee25a /scripts/generate_rust_analyzer.py | |
parent | 8fe050e94daeb0280338d04ff8c6207dea44ddfc (diff) |
iio: trigger: Fix condition for own trigger
The condition for checking if triggers belong to the same IIO device to
set attached_own_device is currently inverted, causing
iio_trigger_using_own() to return an incorrect value. Fix it by testing
for the correct return value of iio_validate_own_trigger().
Cc: [email protected]
Fixes: 517985ebc531 ("iio: trigger: Add simple trigger_validation helper")
Signed-off-by: João Paulo Gonçalves <[email protected]>
Reviewed-by: Francesco Dolcini <[email protected]>
Reviewed-by: Matti Vaittinen <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Jonathan Cameron <[email protected]>
Diffstat (limited to 'scripts/generate_rust_analyzer.py')
0 files changed, 0 insertions, 0 deletions