diff options
author | Devin Heitmueller <dheitmueller@linuxtv.org> | 2009-03-15 19:05:51 -0400 |
---|---|---|
committer | Devin Heitmueller <dheitmueller@linuxtv.org> | 2009-03-15 19:05:51 -0400 |
commit | d42d95e43ed8a60e001ff0a8a4f323380098be7d (patch) | |
tree | 3b602f55da4b0b01f365137a5a5706da993d5856 /linux | |
parent | 90392426eb668074c09657baee8b2f4cf06c8b5e (diff) | |
download | mediapointer-dvb-s2-d42d95e43ed8a60e001ff0a8a4f323380098be7d.tar.gz mediapointer-dvb-s2-d42d95e43ed8a60e001ff0a8a4f323380098be7d.tar.bz2 |
au8522: finish conversion to v4l2_device/subdev
From: Devin Heitmueller <dheitmueller@linuxtv.org>
Per Hans Verkuil <hverkuil@xs4all.nl> instruction, remove the au8522_command
and replace v4l2-i2c-drv-legacy.h with v4l2-i2c-drv.h
Thanks to Hans Verkuil <hverkuil@xs4all.nl> for reviewing the au8522 analog
support.
Priority: normal
Signed-off-by: Devin Heitmueller <dheitmueller@linuxtv.org>
Diffstat (limited to 'linux')
-rw-r--r-- | linux/drivers/media/dvb/frontends/au8522_decoder.c | 8 |
1 files changed, 1 insertions, 7 deletions
diff --git a/linux/drivers/media/dvb/frontends/au8522_decoder.c b/linux/drivers/media/dvb/frontends/au8522_decoder.c index b4a205809..7c782b8d5 100644 --- a/linux/drivers/media/dvb/frontends/au8522_decoder.c +++ b/linux/drivers/media/dvb/frontends/au8522_decoder.c @@ -37,7 +37,7 @@ #include <linux/delay.h> #include <media/v4l2-common.h> #include <media/v4l2-chip-ident.h> -#include <media/v4l2-i2c-drv-legacy.h> +#include <media/v4l2-i2c-drv.h> #include <media/v4l2-device.h> #include "compat.h" #include "au8522.h" @@ -726,11 +726,6 @@ static int au8522_log_status(struct v4l2_subdev *sd) return 0; } -static int au8522_command(struct i2c_client *client, unsigned cmd, void *arg) -{ - return v4l2_subdev_command(i2c_get_clientdata(client), cmd, arg); -} - /* ----------------------------------------------------------------------- */ static const struct v4l2_subdev_core_ops au8522_core_ops = { @@ -841,7 +836,6 @@ MODULE_DEVICE_TABLE(i2c, au8522_id); static struct v4l2_i2c_driver_data v4l2_i2c_data = { .name = "au8522", .driverid = I2C_DRIVERID_AU8522, - .command = au8522_command, .probe = au8522_probe, .remove = au8522_remove, #if LINUX_VERSION_CODE >= KERNEL_VERSION(2, 6, 26) |