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

[media] V4L: ov772x: remove superfluous soc-camera client operations

Now that all soc-camera hosts have been ported to use V4L2 subdevice
mediabus-config operations and soc-camera client bus-parameter operations
have been made optional, they can be removed.

Signed-off-by: Guennadi Liakhovetski <g.liakhovetski@gmx.de>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>

authored by

Guennadi Liakhovetski and committed by
Mauro Carvalho Chehab
3e1b6b72 cb626371

-26
-25
drivers/media/video/ov772x.c
··· 621 621 return 0; 622 622 } 623 623 624 - static int ov772x_set_bus_param(struct soc_camera_device *icd, 625 - unsigned long flags) 626 - { 627 - return 0; 628 - } 629 - 630 - static unsigned long ov772x_query_bus_param(struct soc_camera_device *icd) 631 - { 632 - struct i2c_client *client = to_i2c_client(to_soc_camera_control(icd)); 633 - struct ov772x_priv *priv = i2c_get_clientdata(client); 634 - struct soc_camera_link *icl = to_soc_camera_link(icd); 635 - unsigned long flags = SOCAM_PCLK_SAMPLE_RISING | SOCAM_MASTER | 636 - SOCAM_VSYNC_ACTIVE_HIGH | SOCAM_HSYNC_ACTIVE_HIGH | 637 - SOCAM_DATA_ACTIVE_HIGH; 638 - 639 - if (priv->info->flags & OV772X_FLAG_8BIT) 640 - flags |= SOCAM_DATAWIDTH_8; 641 - else 642 - flags |= SOCAM_DATAWIDTH_10; 643 - 644 - return soc_camera_apply_sensor_flags(icl, flags); 645 - } 646 - 647 624 static int ov772x_g_ctrl(struct v4l2_subdev *sd, struct v4l2_control *ctrl) 648 625 { 649 626 struct ov772x_priv *priv = container_of(sd, struct ov772x_priv, subdev); ··· 1047 1070 } 1048 1071 1049 1072 static struct soc_camera_ops ov772x_ops = { 1050 - .set_bus_param = ov772x_set_bus_param, 1051 - .query_bus_param = ov772x_query_bus_param, 1052 1073 .controls = ov772x_controls, 1053 1074 .num_controls = ARRAY_SIZE(ov772x_controls), 1054 1075 };
-1
include/media/ov772x.h
··· 15 15 /* for flags */ 16 16 #define OV772X_FLAG_VFLIP (1 << 0) /* Vertical flip image */ 17 17 #define OV772X_FLAG_HFLIP (1 << 1) /* Horizontal flip image */ 18 - #define OV772X_FLAG_8BIT (1 << 2) /* default 10 bit */ 19 18 20 19 /* 21 20 * for Edge ctrl