OSDN Git Service

arm/komeda: Convert dp_wait_cond() to return an error code.
authorLiviu Dudau <Liviu.Dudau@arm.com>
Wed, 5 Jun 2019 10:48:01 +0000 (11:48 +0100)
committerLiviu Dudau <Liviu.Dudau@arm.com>
Wed, 19 Jun 2019 10:42:16 +0000 (11:42 +0100)
commitebf68996de0ab250c5d520eb2291ab65643e9a1e
tree8722f867dab48c998f980d495013a7f36245016e
parent62ffc39320e6135235c659687324b393d4215300
arm/komeda: Convert dp_wait_cond() to return an error code.

dp_wait_cond() currently returns the number of retries left over which
is hardly an useful information. Convert to returning -ETIMEDOUT when
the wait times out, or 0 (zero) when condition is met before deadline.

Also convert the users of the function to return the error value.

Signed-off-by: Liviu Dudau <liviu.dudau@arm.com>
Reviewed-by: James Qian Wang (Arm Technology China) <james.qian.wang@arm.com>
drivers/gpu/drm/arm/display/include/malidp_utils.h
drivers/gpu/drm/arm/display/komeda/d71/d71_dev.c