diff options
author | Gerd Knorr <devnull@localhost> | 2004-10-08 11:22:20 +0000 |
---|---|---|
committer | Gerd Knorr <devnull@localhost> | 2004-10-08 11:22:20 +0000 |
commit | afef69a0081705ef086e54df10c1c53a71c6c07a (patch) | |
tree | 12d6c6ab76070144d677dab722894cb5b14e1a59 /linux/drivers/media/video/tda9887.c | |
parent | 36d7a68a17217bd017be81955f43720248319058 (diff) | |
download | mediapointer-dvb-s2-afef69a0081705ef086e54df10c1c53a71c6c07a.tar.gz mediapointer-dvb-s2-afef69a0081705ef086e54df10c1c53a71c6c07a.tar.bz2 |
- add suspend support for some i2c modules.
Diffstat (limited to 'linux/drivers/media/video/tda9887.c')
-rw-r--r-- | linux/drivers/media/video/tda9887.c | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/linux/drivers/media/video/tda9887.c b/linux/drivers/media/video/tda9887.c index 5c7c9b17a..6f2e4516d 100644 --- a/linux/drivers/media/video/tda9887.c +++ b/linux/drivers/media/video/tda9887.c @@ -735,6 +735,22 @@ tda9887_command(struct i2c_client *client, unsigned int cmd, void *arg) return 0; } +static int tda9887_suspend(struct device * dev, u32 state, u32 level) +{ + dprintk("tda9887: suspend\n"); + return 0; +} + +static int tda9887_resume(struct device * dev, u32 level) +{ + struct i2c_client *c = container_of(dev, struct i2c_client, dev); + struct tda9887 *t = i2c_get_clientdata(c); + + dprintk("tda9887: resume\n"); + tda9887_configure(t); + return 0; +} + /* ----------------------------------------------------------------------- */ static struct i2c_driver driver = { @@ -747,6 +763,10 @@ static struct i2c_driver driver = { .attach_adapter = tda9887_probe, .detach_client = tda9887_detach, .command = tda9887_command, + .driver = { + .suspend = tda9887_suspend, + .resume = tda9887_resume, + }, }; static struct i2c_client client_template = { |