core: remove buggy flags sanitization from line-config
authorBartosz Golaszewski <bartosz.golaszewski@linaro.org>
Thu, 4 Jan 2024 13:50:58 +0000 (14:50 +0100)
committerBartosz Golaszewski <bartosz.golaszewski@linaro.org>
Fri, 5 Jan 2024 08:48:49 +0000 (09:48 +0100)
commit8e2e30e70bafce6131f9345e8b48f0c33e088480
tree425018f1e9f7e1e97bcf95502c5a3f81b075fb12
parentb07d076e3213d09781e2d977a9cc85713e5f45c5
core: remove buggy flags sanitization from line-config

We try to drop potentially set output flags from line config if edge
detection is enabled but we use the library enum instead of the one from
the uAPI. In any case, we should actually loudly complain if user tries
to use the output mode with edge-detection (like we do currently) so just
remove offending lines entirely.

Reported-by: Anne Bezemer <j.a.bezemer@opensourcepartners.nl>
Signed-off-by: Bartosz Golaszewski <bartosz.golaszewski@linaro.org>
Reviewed-by: Kent Gibson <warthog618@gmail.com>
Reviewed-by: Anne Bezemer <j.a.bezemer@opensourcepartners.nl>
lib/line-config.c