diff options
| author | Bartosz Golaszewski <bartosz.golaszewski@linaro.org> | 2024-01-25 09:35:07 +0100 |
|---|---|---|
| committer | Bartosz Golaszewski <bartosz.golaszewski@linaro.org> | 2024-01-29 11:45:49 +0100 |
| commit | 6933ba529d06afdd3faf5501855e410b46b77160 (patch) | |
| tree | c1cd919e34933f98ede5577a4016af050a658957 /scripts/generate_rust_analyzer.py | |
| parent | 88b7049635dc5d0e2a7dfaaf89e70a9654ed6561 (diff) | |
gpio: improve the API contract for setting direction
If a GPIO driver returns a positive integer from one of the direction
setter callbacks, we'll end up propagating it to user-space. Whether we
should sanitize the values returned by callbacks is a different question
but let's first improve the documentation and fortify the contract with
GPIO providers.
Reported-by: José Guilherme de Castro Rodrigues <joseguilhermebh@hotmail.com>
Signed-off-by: Bartosz Golaszewski <bartosz.golaszewski@linaro.org>
Reviewed-by: Kent Gibson <warthog618@gmail.com>
Diffstat (limited to 'scripts/generate_rust_analyzer.py')
0 files changed, 0 insertions, 0 deletions
