aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/media/i2c/adv7343.c
diff options
context:
space:
mode:
authorHans Verkuil <hans.verkuil@cisco.com>2013-05-29 05:59:51 -0400
committerMauro Carvalho Chehab <mchehab@redhat.com>2013-06-17 07:52:10 -0400
commite12771100c93e101a7a8b302b6c5d57cff7b1551 (patch)
treea831f1d64d92142e5ce4cbcdfcd5a6f623db04e9 /drivers/media/i2c/adv7343.c
parent6be89daa03a4c99b0d22a59a660b225a592ed0a9 (diff)
[media] media/i2c: remove g_chip_ident op
This is no longer needed since the core now handles this through DBG_G_CHIP_INFO. Signed-off-by: Hans Verkuil <hans.verkuil@cisco.com> Acked-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com> Acked-by: Lad, Prabhakar <prabhakar.csengg@gmail.com> Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
Diffstat (limited to 'drivers/media/i2c/adv7343.c')
-rw-r--r--drivers/media/i2c/adv7343.c10
1 files changed, 0 insertions, 10 deletions
diff --git a/drivers/media/i2c/adv7343.c b/drivers/media/i2c/adv7343.c
index 9fc2b985df0e..7606218ec4a7 100644
--- a/drivers/media/i2c/adv7343.c
+++ b/drivers/media/i2c/adv7343.c
@@ -28,7 +28,6 @@
28 28
29#include <media/adv7343.h> 29#include <media/adv7343.h>
30#include <media/v4l2-device.h> 30#include <media/v4l2-device.h>
31#include <media/v4l2-chip-ident.h>
32#include <media/v4l2-ctrls.h> 31#include <media/v4l2-ctrls.h>
33 32
34#include "adv7343_regs.h" 33#include "adv7343_regs.h"
@@ -311,21 +310,12 @@ static int adv7343_s_ctrl(struct v4l2_ctrl *ctrl)
311 return -EINVAL; 310 return -EINVAL;
312} 311}
313 312
314static int adv7343_g_chip_ident(struct v4l2_subdev *sd,
315 struct v4l2_dbg_chip_ident *chip)
316{
317 struct i2c_client *client = v4l2_get_subdevdata(sd);
318
319 return v4l2_chip_ident_i2c_client(client, chip, V4L2_IDENT_ADV7343, 0);
320}
321
322static const struct v4l2_ctrl_ops adv7343_ctrl_ops = { 313static const struct v4l2_ctrl_ops adv7343_ctrl_ops = {
323 .s_ctrl = adv7343_s_ctrl, 314 .s_ctrl = adv7343_s_ctrl,
324}; 315};
325 316
326static const struct v4l2_subdev_core_ops adv7343_core_ops = { 317static const struct v4l2_subdev_core_ops adv7343_core_ops = {
327 .log_status = adv7343_log_status, 318 .log_status = adv7343_log_status,
328 .g_chip_ident = adv7343_g_chip_ident,
329 .g_ext_ctrls = v4l2_subdev_g_ext_ctrls, 319 .g_ext_ctrls = v4l2_subdev_g_ext_ctrls,
330 .try_ext_ctrls = v4l2_subdev_try_ext_ctrls, 320 .try_ext_ctrls = v4l2_subdev_try_ext_ctrls,
331 .s_ext_ctrls = v4l2_subdev_s_ext_ctrls, 321 .s_ext_ctrls = v4l2_subdev_s_ext_ctrls,