Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 371338
b: refs/heads/master
c: d52e2e7
h: refs/heads/master
v: v3
  • Loading branch information
Archit Taneja authored and Tomi Valkeinen committed Apr 3, 2013
1 parent ddd616a commit 5d46871
Show file tree
Hide file tree
Showing 2 changed files with 21 additions and 2 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 3552fb78f1d8d0403ca7f8224da3e85bf2776321
refs/heads/master: d52e2e7557eace36e7eb731bbd40ed3588eb0f1b
21 changes: 20 additions & 1 deletion trunk/drivers/video/omap2/displays/panel-picodlp.c
Original file line number Diff line number Diff line change
Expand Up @@ -423,10 +423,13 @@ static int picodlp_panel_probe(struct omap_dss_device *dssdev)
struct picodlp_panel_data *picodlp_pdata = get_panel_data(dssdev);
struct i2c_adapter *adapter;
struct i2c_client *picodlp_i2c_client;
int picodlp_adapter_id;
int r, picodlp_adapter_id;

dssdev->panel.timings = pico_ls_timings;

if (!picodlp_pdata)
return -EINVAL;

picod = devm_kzalloc(&dssdev->dev, sizeof(*picod), GFP_KERNEL);
if (!picod)
return -ENOMEM;
Expand All @@ -452,6 +455,22 @@ static int picodlp_panel_probe(struct omap_dss_device *dssdev)

dev_set_drvdata(&dssdev->dev, picod);

if (gpio_is_valid(picodlp_pdata->emu_done_gpio)) {
r = devm_gpio_request_one(&dssdev->dev,
picodlp_pdata->emu_done_gpio,
GPIOF_IN, "DLP EMU DONE");
if (r)
return r;
}

if (gpio_is_valid(picodlp_pdata->pwrgood_gpio)) {
r = devm_gpio_request_one(&dssdev->dev,
picodlp_pdata->pwrgood_gpio,
GPIOF_OUT_INIT_LOW, "DLP PWRGOOD");
if (r)
return r;
}

return 0;
}

Expand Down

0 comments on commit 5d46871

Please sign in to comment.