Skip to content

Commit 0edeb0c

Browse files
curroBen Skeggs
authored andcommitted
drm/i2c/ch7006: Fix up suspend/resume.
Signed-off-by: Francisco Jerez <currojerez@riseup.net> Signed-off-by: Ben Skeggs <bskeggs@redhat.com>
1 parent 047d1d3 commit 0edeb0c

1 file changed

Lines changed: 18 additions & 0 deletions

File tree

‎drivers/gpu/drm/i2c/ch7006_drv.c‎

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -428,6 +428,22 @@ static int ch7006_remove(struct i2c_client *client)
428428
return 0;
429429
}
430430

431+
static int ch7006_suspend(struct i2c_client *client, pm_message_t mesg)
432+
{
433+
ch7006_dbg(client, "\n");
434+
435+
return 0;
436+
}
437+
438+
static int ch7006_resume(struct i2c_client *client)
439+
{
440+
ch7006_dbg(client, "\n");
441+
442+
ch7006_write(client, 0x3d, 0x0);
443+
444+
return 0;
445+
}
446+
431447
static int ch7006_encoder_init(struct i2c_client *client,
432448
struct drm_device *dev,
433449
struct drm_encoder_slave *encoder)
@@ -487,6 +503,8 @@ static struct drm_i2c_encoder_driver ch7006_driver = {
487503
.i2c_driver = {
488504
.probe = ch7006_probe,
489505
.remove = ch7006_remove,
506+
.suspend = ch7006_suspend,
507+
.resume = ch7006_resume,
490508

491509
.driver = {
492510
.name = "ch7006",

0 commit comments

Comments
 (0)