summaryrefslogtreecommitdiff
path: root/linux/drivers/media/video/au0828/au0828-i2c.c
diff options
context:
space:
mode:
authorDevin Heitmueller <dheitmueller@linuxtv.org>2009-03-15 19:01:53 -0400
committerDevin Heitmueller <dheitmueller@linuxtv.org>2009-03-15 19:01:53 -0400
commit90392426eb668074c09657baee8b2f4cf06c8b5e (patch)
tree01c1d4af83c7cdc322ac8bbcf728c66165d265c8 /linux/drivers/media/video/au0828/au0828-i2c.c
parente349a2e984faf451597ceea0fc7e1ffb077314d8 (diff)
downloadmediapointer-dvb-s2-90392426eb668074c09657baee8b2f4cf06c8b5e.tar.gz
mediapointer-dvb-s2-90392426eb668074c09657baee8b2f4cf06c8b5e.tar.bz2
au0828: finish videodev/subdev conversion
From: Devin Heitmueller <dheitmueller@linuxtv.org> Per Hans Verkuil <hverkuil@xs4all.nl> instruction, remove the deprecated attach_inform/detach_inform routines, and convert over the i2c calls to subdev calls. Thanks to Hans Verkuil <hverkuil@xs4all.nl> for providing feedback on the au0828 analog support. Priority: normal Signed-off-by: Devin Heitmueller <dheitmueller@linuxtv.org>
Diffstat (limited to 'linux/drivers/media/video/au0828/au0828-i2c.c')
-rw-r--r--linux/drivers/media/video/au0828/au0828-i2c.c29
1 files changed, 0 insertions, 29 deletions
diff --git a/linux/drivers/media/video/au0828/au0828-i2c.c b/linux/drivers/media/video/au0828/au0828-i2c.c
index 3f99b4153..eb63166f6 100644
--- a/linux/drivers/media/video/au0828/au0828-i2c.c
+++ b/linux/drivers/media/video/au0828/au0828-i2c.c
@@ -300,33 +300,6 @@ err:
return retval;
}
-static int attach_inform(struct i2c_client *client)
-{
- dprintk(1, "%s i2c attach [addr=0x%x,client=%s]\n",
- client->driver->driver.name, client->addr, client->name);
-
- if (!client->driver->command)
- return 0;
-
- return 0;
-}
-
-static int detach_inform(struct i2c_client *client)
-{
- dprintk(1, "i2c detach [client=%s]\n", client->name);
-
- return 0;
-}
-
-void au0828_call_i2c_clients(struct au0828_dev *dev,
- unsigned int cmd, void *arg)
-{
- if (dev->i2c_rc != 0)
- return;
-
- i2c_clients_command(&dev->i2c_adap, cmd, arg);
-}
-
static u32 au0828_functionality(struct i2c_adapter *adap)
{
return I2C_FUNC_SMBUS_EMUL | I2C_FUNC_I2C;
@@ -347,8 +320,6 @@ static struct i2c_adapter au0828_i2c_adap_template = {
.owner = THIS_MODULE,
.id = I2C_HW_B_AU0828,
.algo = &au0828_i2c_algo_template,
- .client_register = attach_inform,
- .client_unregister = detach_inform,
};
static struct i2c_client au0828_i2c_client_template = {