summaryrefslogtreecommitdiff
path: root/drivers/media/i2c/ths8200.c
diff options
context:
space:
mode:
authorHans Verkuil <hans.verkuil@cisco.com>2013-06-10 13:57:19 +0400
committerMauro Carvalho Chehab <mchehab@redhat.com>2013-06-17 18:23:17 +0400
commit3080f8c77f277eb87397d639581ebea859f9ea41 (patch)
tree3e0aa021b82571fb825af0334c831df0bcfeec9d /drivers/media/i2c/ths8200.c
parentcabc6508984f2d145bdab4a6998072a9e5faf100 (diff)
downloadlinux-3080f8c77f277eb87397d639581ebea859f9ea41.tar.xz
[media] ths8200: fix two compiler warnings
drivers/media/i2c/ths8200.c: In function ‘ths8200_g_register’: drivers/media/i2c/ths8200.c:121:21: warning: unused variable ‘client’ [-Wunused-variable] drivers/media/i2c/ths8200.c: In function ‘ths8200_s_register’: drivers/media/i2c/ths8200.c:132:21: warning: unused variable ‘client’ [-Wunused-variable] Signed-off-by: Hans Verkuil <hans.verkuil@cisco.com> Cc: Prabhakar Lad <prabhakar.csengg@gmail.com> Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
Diffstat (limited to 'drivers/media/i2c/ths8200.c')
-rw-r--r--drivers/media/i2c/ths8200.c4
1 files changed, 0 insertions, 4 deletions
diff --git a/drivers/media/i2c/ths8200.c b/drivers/media/i2c/ths8200.c
index 939682967579..a24f90c5261c 100644
--- a/drivers/media/i2c/ths8200.c
+++ b/drivers/media/i2c/ths8200.c
@@ -118,8 +118,6 @@ ths8200_write_and_or(struct v4l2_subdev *sd, u8 reg,
static int ths8200_g_register(struct v4l2_subdev *sd,
struct v4l2_dbg_register *reg)
{
- struct i2c_client *client = v4l2_get_subdevdata(sd);
-
reg->val = ths8200_read(sd, reg->reg & 0xff);
reg->size = 1;
@@ -129,8 +127,6 @@ static int ths8200_g_register(struct v4l2_subdev *sd,
static int ths8200_s_register(struct v4l2_subdev *sd,
const struct v4l2_dbg_register *reg)
{
- struct i2c_client *client = v4l2_get_subdevdata(sd);
-
ths8200_write(sd, reg->reg & 0xff, reg->val & 0xff);
return 0;