gpiosim: fix error reporting in gpiosim_bank_hog_line()
authorBartosz Golaszewski <bartosz.golaszewski@linaro.org>
Mon, 2 Jan 2023 14:31:58 +0000 (15:31 +0100)
committerBartosz Golaszewski <bartosz.golaszewski@linaro.org>
Mon, 2 Jan 2023 14:31:58 +0000 (15:31 +0100)
commit936785d36e2971b3d9cccfd51d4a46dd1760597b
tree5c717cae17bcbc773cc29165a20ba8bf89d2946c
parente0cd3345a442700676bcae204c03ff6740541982
gpiosim: fix error reporting in gpiosim_bank_hog_line()

We don't return errno numbers from public functions - we set errno and
indicate an error by returning -1 or NULL depending on the function
signature. Make gpiosim_bank_hog_line() consistent with that behavior.

Signed-off-by: Bartosz Golaszewski <bartosz.golaszewski@linaro.org>
tests/gpiosim/gpiosim.c