staging: mmal-vchiq: If the VPU returns an error, don't negate it
authorDave Stevenson <dave.stevenson@raspberrypi.org>
Wed, 13 Feb 2019 12:51:03 +0000 (12:51 +0000)
committerpopcornmix <popcornmix@gmail.com>
Mon, 13 May 2019 23:08:21 +0000 (00:08 +0100)
commit1d88d96e61249e86284b399cbf40469e4e4f5c13
tree41b75de87f10639b07d5b5c12f740283f24d531d
parenta00177eaa6d5c274664b6c8c86318734657d657e
staging: mmal-vchiq: If the VPU returns an error, don't negate it

There is an enum for the errors that the VPU can return.
port_parameter_get was negating that value, but also using -EINVAL
from the Linux error codes.
Pass the VPU error code as positive values. Should the function
need to pass a Linux failure, then return that as negative.

Signed-off-by: Dave Stevenson <dave.stevenson@raspberrypi.org>
drivers/staging/vc04_services/vchiq-mmal/mmal-vchiq.c