drm/tegra: rgb: Restore DPMS
authorThierry Reding <treding@nvidia.com>
Wed, 29 Jul 2015 08:08:17 +0000 (10:08 +0200)
committerThierry Reding <treding@nvidia.com>
Thu, 13 Aug 2015 11:48:54 +0000 (13:48 +0200)
commit32c3dee11e8e8ff790a8724c1bfe87a51976d7f8
treeb585f78f3c6a21d4c7ad207f74b4ca63f6260702
parent530239a8b82c0d051ccda341cb346d3f11a80e70
drm/tegra: rgb: Restore DPMS

In order to restore DPMS with atomic mode-setting, move all code from
the ->mode_set() callback into ->enable(). At the same time, rename the
->prepare() callback to ->disable() to use the names preferred by atomic
mode-setting. This simplifies the calling sequence and will allow DPMS
code to use runtime PM in subsequent patches.

While at it, remove the enabled field that hasn't been used since the
demidlayering of the output drivers done in preparation for the atomic
mode-setting conversion.

Signed-off-by: Thierry Reding <treding@nvidia.com>
drivers/gpu/drm/tegra/rgb.c