Staging: vc04_services: Fix a couple error codes
authorDan Carpenter <dan.carpenter@oracle.com>
Mon, 13 May 2019 11:07:18 +0000 (14:07 +0300)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sat, 22 Jun 2019 06:15:15 +0000 (08:15 +0200)
commitdd9b6de79b67a125fe354af67ee938e1450b9c70
treeda3c129a85135d52bdb4021dd5829ae0fdc3ca29
parent97605ba68790ff94358a50bc33f27b85431e5e67
Staging: vc04_services: Fix a couple error codes

[ Upstream commit ca4e4efbefbbdde0a7bb3023ea08d491f4daf9b9 ]

These are accidentally returning positive EINVAL instead of negative
-EINVAL.  Some of the callers treat positive values as success.

Fixes: 7b3ad5abf027 ("staging: Import the BCM2835 MMAL-based V4L2 camera driver.")
Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>
Acked-by: Stefan Wahren <stefan.wahren@i2se.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/staging/vc04_services/bcm2835-camera/controls.c