Re: [PATCH v2] iio: light: gp2ap020a00f: Correct return type to int
From: Jonathan Cameron
Date: Sat Feb 14 2026 - 14:09:41 EST
On Wed, 11 Feb 2026 14:06:54 -0600
Ethan Tidmore <ethantidmore06@xxxxxxxxx> wrote:
> The function gp2ap020a00f_get_thresh_reg() can return -EINVAL in
> its error path. Yet, the function has return type of u8. Add error
> checking for gp2ap020a00f_get_thresh_reg() return's value.
>
> Fixes: 5d6a25bad035 ("iio:gp2ap020a00f: Switch to new event config interface")
> Signed-off-by: Ethan Tidmore <ethantidmore06@xxxxxxxxx>
Ah. I forgot to check for a v2.
See comments on v1.
Jonathan