Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 217320
b: refs/heads/master
c: 18016e3
h: refs/heads/master
v: v3
  • Loading branch information
Stanley.Miao authored and Tomi Valkeinen committed Oct 22, 2010
1 parent 30c67a6 commit 4fe334a
Show file tree
Hide file tree
Showing 7 changed files with 37 additions and 1 deletion.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 41814cfc01b059df33011d929837558c22f3c0e0
refs/heads/master: 18016e35d448d35739f8640b51476709c07e95db
6 changes: 6 additions & 0 deletions trunk/drivers/video/omap2/displays/panel-acx565akm.c
Original file line number Diff line number Diff line change
Expand Up @@ -587,6 +587,9 @@ static int acx_panel_power_on(struct omap_dss_device *dssdev)

dev_dbg(&dssdev->dev, "%s\n", __func__);

if (dssdev->state == OMAP_DSS_DISPLAY_ACTIVE)
return 0;

mutex_lock(&md->mutex);

r = omapdss_sdi_display_enable(dssdev);
Expand Down Expand Up @@ -644,6 +647,9 @@ static void acx_panel_power_off(struct omap_dss_device *dssdev)

dev_dbg(&dssdev->dev, "%s\n", __func__);

if (dssdev->state != OMAP_DSS_DISPLAY_ACTIVE)
return;

mutex_lock(&md->mutex);

if (!md->enabled) {
Expand Down
6 changes: 6 additions & 0 deletions trunk/drivers/video/omap2/displays/panel-generic.c
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,9 @@ static int generic_panel_power_on(struct omap_dss_device *dssdev)
{
int r;

if (dssdev->state == OMAP_DSS_DISPLAY_ACTIVE)
return 0;

r = omapdss_dpi_display_enable(dssdev);
if (r)
goto err0;
Expand All @@ -58,6 +61,9 @@ static int generic_panel_power_on(struct omap_dss_device *dssdev)

static void generic_panel_power_off(struct omap_dss_device *dssdev)
{
if (dssdev->state != OMAP_DSS_DISPLAY_ACTIVE)
return;

if (dssdev->platform_disable)
dssdev->platform_disable(dssdev);

Expand Down
6 changes: 6 additions & 0 deletions trunk/drivers/video/omap2/displays/panel-sharp-lq043t1dg01.c
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,9 @@ static int sharp_lq_panel_power_on(struct omap_dss_device *dssdev)
{
int r;

if (dssdev->state == OMAP_DSS_DISPLAY_ACTIVE)
return 0;

r = omapdss_dpi_display_enable(dssdev);
if (r)
goto err0;
Expand All @@ -65,6 +68,9 @@ static int sharp_lq_panel_power_on(struct omap_dss_device *dssdev)

static void sharp_lq_panel_power_off(struct omap_dss_device *dssdev)
{
if (dssdev->state != OMAP_DSS_DISPLAY_ACTIVE)
return;

if (dssdev->platform_disable)
dssdev->platform_disable(dssdev);

Expand Down
6 changes: 6 additions & 0 deletions trunk/drivers/video/omap2/displays/panel-sharp-ls037v7dw01.c
Original file line number Diff line number Diff line change
Expand Up @@ -135,6 +135,9 @@ static int sharp_ls_power_on(struct omap_dss_device *dssdev)
{
int r = 0;

if (dssdev->state == OMAP_DSS_DISPLAY_ACTIVE)
return 0;

r = omapdss_dpi_display_enable(dssdev);
if (r)
goto err0;
Expand All @@ -157,6 +160,9 @@ static int sharp_ls_power_on(struct omap_dss_device *dssdev)

static void sharp_ls_power_off(struct omap_dss_device *dssdev)
{
if (dssdev->state != OMAP_DSS_DISPLAY_ACTIVE)
return;

if (dssdev->platform_disable)
dssdev->platform_disable(dssdev);

Expand Down
6 changes: 6 additions & 0 deletions trunk/drivers/video/omap2/displays/panel-toppoly-tdo35s.c
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,9 @@ static int toppoly_tdo_panel_power_on(struct omap_dss_device *dssdev)
{
int r;

if (dssdev->state == OMAP_DSS_DISPLAY_ACTIVE)
return 0;

r = omapdss_dpi_display_enable(dssdev);
if (r)
goto err0;
Expand All @@ -65,6 +68,9 @@ static int toppoly_tdo_panel_power_on(struct omap_dss_device *dssdev)

static void toppoly_tdo_panel_power_off(struct omap_dss_device *dssdev)
{
if (dssdev->state != OMAP_DSS_DISPLAY_ACTIVE)
return;

if (dssdev->platform_disable)
dssdev->platform_disable(dssdev);

Expand Down
6 changes: 6 additions & 0 deletions trunk/drivers/video/omap2/displays/panel-tpo-td043mtea1.c
Original file line number Diff line number Diff line change
Expand Up @@ -269,6 +269,9 @@ static int tpo_td043_power_on(struct omap_dss_device *dssdev)
int nreset_gpio = dssdev->reset_gpio;
int r;

if (dssdev->state == OMAP_DSS_DISPLAY_ACTIVE)
return 0;

r = omapdss_dpi_display_enable(dssdev);
if (r)
goto err0;
Expand Down Expand Up @@ -308,6 +311,9 @@ static void tpo_td043_power_off(struct omap_dss_device *dssdev)
struct tpo_td043_device *tpo_td043 = dev_get_drvdata(&dssdev->dev);
int nreset_gpio = dssdev->reset_gpio;

if (dssdev->state != OMAP_DSS_DISPLAY_ACTIVE)
return;

tpo_td043_write(tpo_td043->spi, 3,
TPO_R03_VAL_STANDBY | TPO_R03_EN_PWM);

Expand Down

0 comments on commit 4fe334a

Please sign in to comment.