diff options
author | Jarod Wilson <jarod@redhat.com> | 2011-01-19 18:10:14 -0300 |
---|---|---|
committer | Mauro Carvalho Chehab <mchehab@redhat.com> | 2011-01-31 12:18:04 -0200 |
commit | 7f2a06deaa22104a4cf4c0cc3d7c44c7e3228ef3 (patch) | |
tree | f2e9417bc951c6ae5f721a9283952c816174fec9 /drivers/media/video/hdpvr/hdpvr.h | |
parent | 86ee65948886e53b9fd336dec400f4b8f1704f7f (diff) | |
download | op-kernel-dev-7f2a06deaa22104a4cf4c0cc3d7c44c7e3228ef3.zip op-kernel-dev-7f2a06deaa22104a4cf4c0cc3d7c44c7e3228ef3.tar.gz |
[media] hdpvr: fix up i2c device registration
We have to actually call i2c_new_device() once for each of the rx and tx
addresses. Also improve error-handling and device remove i2c cleanup.
Reviewed-by: Andy Walls <awalls@md.metrocast.net>
Signed-off-by: Jarod Wilson <jarod@redhat.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
Diffstat (limited to 'drivers/media/video/hdpvr/hdpvr.h')
-rw-r--r-- | drivers/media/video/hdpvr/hdpvr.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/drivers/media/video/hdpvr/hdpvr.h b/drivers/media/video/hdpvr/hdpvr.h index ee74e3b..072f23c 100644 --- a/drivers/media/video/hdpvr/hdpvr.h +++ b/drivers/media/video/hdpvr/hdpvr.h @@ -313,7 +313,8 @@ int hdpvr_cancel_queue(struct hdpvr_device *dev); /* i2c adapter registration */ int hdpvr_register_i2c_adapter(struct hdpvr_device *dev); -int hdpvr_register_i2c_ir(struct hdpvr_device *dev); +struct i2c_client *hdpvr_register_ir_rx_i2c(struct hdpvr_device *dev); +struct i2c_client *hdpvr_register_ir_tx_i2c(struct hdpvr_device *dev); /*========================================================================*/ /* buffer management */ |