drm: omapdrm: dsi: Make wait_for_bit_change() return a status
authorLaurent Pinchart <laurent.pinchart@ideasonboard.com>
Sun, 11 Feb 2018 13:07:47 +0000 (15:07 +0200)
committerTomi Valkeinen <tomi.valkeinen@ti.com>
Thu, 1 Mar 2018 07:18:18 +0000 (09:18 +0200)
commitbafa89fcac4fa4950ffde0b4f565482290176450
tree34d637944e932ddc2587e8cdc409d775368df1f3
parenteab7579e3570efb1c23cd82ad4559503e5b031f8
drm: omapdrm: dsi: Make wait_for_bit_change() return a status

The wait_for_bit_change() function returns the value of the bit it
polls. This requires the caller to compare the return value to the
expected bit value. As all the existing callers need is to check whether
the bit has reached the expected value, it's easier to return a boolean
status from the function.

Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
Reviewed-by: Sebastian Reichel <sebastian.reichel@collabora.co.uk>
Signed-off-by: Tomi Valkeinen <tomi.valkeinen@ti.com>
drivers/gpu/drm/omapdrm/dss/dsi.c