drm/omap: panel-tpo-td043mtea1: Convert to the GPIO descriptors API
authorLaurent Pinchart <laurent.pinchart@ideasonboard.com>
Mon, 28 May 2018 14:18:26 +0000 (17:18 +0300)
committerTomi Valkeinen <tomi.valkeinen@ti.com>
Mon, 3 Sep 2018 13:13:28 +0000 (16:13 +0300)
commite7df6571024ba791c6521efba5b3875724c47af6
tree0c4e658f6e494d7e1bea7038389b600d1d2d3901
parent2167f9e28a30a4b129b2464fbc5ee8c15e254ff1
drm/omap: panel-tpo-td043mtea1: Convert to the GPIO descriptors API

The GPIO descriptor API is favoured over the plain GPIO API for consumer
drivers. Using it simplifies the driver code.

As the descriptor API handles the active-low flag internally we need to
invert the polarity of all GPIO operations in the driver. Rename the
nreset_gpio field to reset_gpio to reflect that.

The reset GPIO is mandatory, so drop conditional tests through the
driver.

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/displays/panel-tpo-td043mtea1.c