Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 329315
b: refs/heads/master
c: 0227a7f
h: refs/heads/master
i:
  329313: 7207b0b
  329311: 5e0a5fc
v: v3
  • Loading branch information
Mark Brown authored and Dave Airlie committed Aug 23, 2012
1 parent e501c98 commit 37d93d3
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 10 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: df0b344300724e00db9fff7eb6406eb91f450b91
refs/heads/master: 0227a7fdc2a4756aa0e0d1152ce5eada016cf18d
16 changes: 7 additions & 9 deletions trunk/drivers/gpu/drm/i2c/ch7006_drv.c
Original file line number Diff line number Diff line change
Expand Up @@ -427,15 +427,10 @@ static int ch7006_remove(struct i2c_client *client)
return 0;
}

static int ch7006_suspend(struct i2c_client *client, pm_message_t mesg)
static int ch7006_resume(struct device *dev)
{
ch7006_dbg(client, "\n");

return 0;
}
struct i2c_client *client = to_i2c_client(dev);

static int ch7006_resume(struct i2c_client *client)
{
ch7006_dbg(client, "\n");

ch7006_write(client, 0x3d, 0x0);
Expand Down Expand Up @@ -499,15 +494,18 @@ static struct i2c_device_id ch7006_ids[] = {
};
MODULE_DEVICE_TABLE(i2c, ch7006_ids);

static const struct dev_pm_ops ch7006_pm_ops = {
.resume = ch7006_resume,
};

static struct drm_i2c_encoder_driver ch7006_driver = {
.i2c_driver = {
.probe = ch7006_probe,
.remove = ch7006_remove,
.suspend = ch7006_suspend,
.resume = ch7006_resume,

.driver = {
.name = "ch7006",
.pm = &ch7006_pm_ops,
},

.id_table = ch7006_ids,
Expand Down

0 comments on commit 37d93d3

Please sign in to comment.