diff --git a/drivers/video/isx012.c b/drivers/video/isx012.c index 1c97b3023e..cc6200bee2 100644 --- a/drivers/video/isx012.c +++ b/drivers/video/isx012.c @@ -139,7 +139,7 @@ #define VALIDATE_VALUE(val, min, max, step) (((val >= min) && \ (val <= max) && \ (((val - min) % step) == 0) ? \ - OK : -EINVAL)) + OK : -ERANGE)) #define ISX012_CHIPID_L (0x0000c460) #define ISX012_CHIPID_H (0x00005516) diff --git a/drivers/video/isx019.c b/drivers/video/isx019.c index 9fea377e13..7f4f54aaa1 100644 --- a/drivers/video/isx019.c +++ b/drivers/video/isx019.c @@ -3521,7 +3521,7 @@ static int validate_range(int32_t val, if (!VALIDATE_RANGE(val, range->minimum, range->maximum, range->step)) { - ret = -EINVAL; + ret = -ERANGE; } return ret;