OMAP: DSS2: rewrite use of context_loss_count
authorTomi Valkeinen <tomi.valkeinen@ti.com>
Mon, 23 May 2011 12:46:54 +0000 (15:46 +0300)
committerTomi Valkeinen <tomi.valkeinen@ti.com>
Mon, 25 Jul 2011 07:08:15 +0000 (10:08 +0300)
commitaac927c93bb353375c74779491e217427cc4d3a9
treeeb2dc8bc9c7a5a399592420a53722c9256999168
parentb88f58f091f7e771315bc74c28203b5248b96be0
OMAP: DSS2: rewrite use of context_loss_count

The function to get device's context loss count has changed from

omap_pm_get_last_off_on_transaction_id() to
omap_pm_get_dev_context_loss_count()

Change name of the function pointer in omapdss.h accordingly, and use
the term "context loss count" instead of "context id" in the code.

Restructure the context loss count functions to handle errors properly,
and ensure that context is always considered lost if an error happens.

Signed-off-by: Tomi Valkeinen <tomi.valkeinen@ti.com>
arch/arm/mach-omap2/display.c
drivers/video/omap2/dss/dss.c
drivers/video/omap2/dss/dss.h
include/video/omapdss.h