Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

V4L/DVB (11283): saa6588: remove legacy code.

saa6588 is now only used through v4l2_subdev, so we can remove the old legacy
code.

Signed-off-by: Hans Verkuil <hverkuil@xs4all.nl>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>

authored by

Hans Verkuil and committed by
Mauro Carvalho Chehab
aef82207 2983baf8

+1 -15
+1 -15
drivers/media/video/saa6588.c
··· 34 34 #include <media/rds.h> 35 35 #include <media/v4l2-device.h> 36 36 #include <media/v4l2-chip-ident.h> 37 - #include <media/v4l2-i2c-drv-legacy.h> 37 + #include <media/v4l2-i2c-drv.h> 38 38 39 - /* Addresses to scan */ 40 - static unsigned short normal_i2c[] = { 41 - 0x20 >> 1, 42 - 0x22 >> 1, 43 - I2C_CLIENT_END, 44 - }; 45 - 46 - I2C_CLIENT_INSMOD; 47 39 48 40 /* insmod options */ 49 41 static unsigned int debug; ··· 423 431 return v4l2_chip_ident_i2c_client(client, chip, V4L2_IDENT_SAA6588, 0); 424 432 } 425 433 426 - static int saa6588_command(struct i2c_client *client, unsigned cmd, void *arg) 427 - { 428 - return v4l2_subdev_command(i2c_get_clientdata(client), cmd, arg); 429 - } 430 - 431 434 /* ----------------------------------------------------------------------- */ 432 435 433 436 static const struct v4l2_subdev_core_ops saa6588_core_ops = { ··· 498 511 499 512 static struct v4l2_i2c_driver_data v4l2_i2c_data = { 500 513 .name = "saa6588", 501 - .command = saa6588_command, 502 514 .probe = saa6588_probe, 503 515 .remove = saa6588_remove, 504 516 .id_table = saa6588_id,