diff options
author | Tomi Valkeinen <tomi.valkeinen@nokia.com> | 2010-01-11 09:12:31 -0500 |
---|---|---|
committer | Tomi Valkeinen <tomi.valkeinen@nokia.com> | 2010-02-24 07:31:28 -0500 |
commit | 446f7bff703f5f82560afde90fb22b7a1d366bbc (patch) | |
tree | 6ed3d56bbe170c8491e77734822fbcd8f07fbe0c /drivers/video/omap2/displays | |
parent | 225b650d41e7cdbf5cd322a461b04493caabed09 (diff) |
OMAP: DSS2: move set/get_update_mode()
Move set/get_update_mode() from omap_dss_device to omap_dss_driver.
This is part of a larger patch-set, which moves the control from omapdss
driver to the display driver.
Signed-off-by: Tomi Valkeinen <tomi.valkeinen@nokia.com>
Diffstat (limited to 'drivers/video/omap2/displays')
-rw-r--r-- | drivers/video/omap2/displays/panel-taal.c | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/drivers/video/omap2/displays/panel-taal.c b/drivers/video/omap2/displays/panel-taal.c index af4b0b03b745..4ccb583b7b67 100644 --- a/drivers/video/omap2/displays/panel-taal.c +++ b/drivers/video/omap2/displays/panel-taal.c | |||
@@ -995,6 +995,20 @@ err: | |||
995 | queue_delayed_work(td->esd_wq, &td->esd_work, TAAL_ESD_CHECK_PERIOD); | 995 | queue_delayed_work(td->esd_wq, &td->esd_work, TAAL_ESD_CHECK_PERIOD); |
996 | } | 996 | } |
997 | 997 | ||
998 | static int taal_set_update_mode(struct omap_dss_device *dssdev, | ||
999 | enum omap_dss_update_mode mode) | ||
1000 | { | ||
1001 | if (mode != OMAP_DSS_UPDATE_MANUAL) | ||
1002 | return -EINVAL; | ||
1003 | return 0; | ||
1004 | } | ||
1005 | |||
1006 | static enum omap_dss_update_mode taal_get_update_mode( | ||
1007 | struct omap_dss_device *dssdev) | ||
1008 | { | ||
1009 | return OMAP_DSS_UPDATE_MANUAL; | ||
1010 | } | ||
1011 | |||
998 | static struct omap_dss_driver taal_driver = { | 1012 | static struct omap_dss_driver taal_driver = { |
999 | .probe = taal_probe, | 1013 | .probe = taal_probe, |
1000 | .remove = taal_remove, | 1014 | .remove = taal_remove, |
@@ -1005,6 +1019,8 @@ static struct omap_dss_driver taal_driver = { | |||
1005 | .resume = taal_resume, | 1019 | .resume = taal_resume, |
1006 | 1020 | ||
1007 | .setup_update = taal_setup_update, | 1021 | .setup_update = taal_setup_update, |
1022 | .set_update_mode = taal_set_update_mode, | ||
1023 | .get_update_mode = taal_get_update_mode, | ||
1008 | .get_resolution = taal_get_resolution, | 1024 | .get_resolution = taal_get_resolution, |
1009 | .get_recommended_bpp = omapdss_default_get_recommended_bpp, | 1025 | .get_recommended_bpp = omapdss_default_get_recommended_bpp, |
1010 | 1026 | ||