diff options
author | Devin Heitmueller <dheitmueller@linuxtv.org> | 2009-03-15 19:01:53 -0400 |
---|---|---|
committer | Mauro Carvalho Chehab <mchehab@redhat.com> | 2009-03-30 11:43:28 -0400 |
commit | 2689d3dcc6c75c0b4a05b66330db85df2c036d3e (patch) | |
tree | f97c0181d6fd325dc039ea907e517994de48c63e /drivers/media/video/au0828/au0828-i2c.c | |
parent | dd27ade7a9195cb3b1f56df4d0ec39763830390b (diff) |
V4L/DVB (11088): au0828: finish videodev/subdev conversion
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.
Signed-off-by: Devin Heitmueller <dheitmueller@linuxtv.org>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
Diffstat (limited to 'drivers/media/video/au0828/au0828-i2c.c')
-rw-r--r-- | drivers/media/video/au0828/au0828-i2c.c | 29 |
1 files changed, 0 insertions, 29 deletions
diff --git a/drivers/media/video/au0828/au0828-i2c.c b/drivers/media/video/au0828/au0828-i2c.c index 1b110f37b895..f9a958d0aef1 100644 --- a/drivers/media/video/au0828/au0828-i2c.c +++ b/drivers/media/video/au0828/au0828-i2c.c | |||
@@ -299,33 +299,6 @@ err: | |||
299 | return retval; | 299 | return retval; |
300 | } | 300 | } |
301 | 301 | ||
302 | static int attach_inform(struct i2c_client *client) | ||
303 | { | ||
304 | dprintk(1, "%s i2c attach [addr=0x%x,client=%s]\n", | ||
305 | client->driver->driver.name, client->addr, client->name); | ||
306 | |||
307 | if (!client->driver->command) | ||
308 | return 0; | ||
309 | |||
310 | return 0; | ||
311 | } | ||
312 | |||
313 | static int detach_inform(struct i2c_client *client) | ||
314 | { | ||
315 | dprintk(1, "i2c detach [client=%s]\n", client->name); | ||
316 | |||
317 | return 0; | ||
318 | } | ||
319 | |||
320 | void au0828_call_i2c_clients(struct au0828_dev *dev, | ||
321 | unsigned int cmd, void *arg) | ||
322 | { | ||
323 | if (dev->i2c_rc != 0) | ||
324 | return; | ||
325 | |||
326 | i2c_clients_command(&dev->i2c_adap, cmd, arg); | ||
327 | } | ||
328 | |||
329 | static u32 au0828_functionality(struct i2c_adapter *adap) | 302 | static u32 au0828_functionality(struct i2c_adapter *adap) |
330 | { | 303 | { |
331 | return I2C_FUNC_SMBUS_EMUL | I2C_FUNC_I2C; | 304 | return I2C_FUNC_SMBUS_EMUL | I2C_FUNC_I2C; |
@@ -343,8 +316,6 @@ static struct i2c_adapter au0828_i2c_adap_template = { | |||
343 | .owner = THIS_MODULE, | 316 | .owner = THIS_MODULE, |
344 | .id = I2C_HW_B_AU0828, | 317 | .id = I2C_HW_B_AU0828, |
345 | .algo = &au0828_i2c_algo_template, | 318 | .algo = &au0828_i2c_algo_template, |
346 | .client_register = attach_inform, | ||
347 | .client_unregister = detach_inform, | ||
348 | }; | 319 | }; |
349 | 320 | ||
350 | static struct i2c_client au0828_i2c_client_template = { | 321 | static struct i2c_client au0828_i2c_client_template = { |