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

[media] media: i2c: ths7303: remove unused member driver_data

This patch removes the driver_data member from ths7303_state structure.
The driver_data member was intended to differentiate between ths7303 and
ths7353 chip and get the g_chip_ident, But as of now g_chip_ident is
obsolete, so there is no need of driver_data.

Signed-off-by: Lad, Prabhakar <prabhakar.csengg@gmail.com>
Signed-off-by: Hans Verkuil <hans.verkuil@cisco.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>

authored by

Lad, Prabhakar and committed by
Mauro Carvalho Chehab
8fc350ab d9ec089e

-4
-4
drivers/media/i2c/ths7303.c
··· 38 38 struct v4l2_bt_timings bt; 39 39 int std_id; 40 40 int stream_on; 41 - int driver_data; 42 41 }; 43 42 44 43 enum ths7303_filter_mode { ··· 353 354 state->pdata = pdata; 354 355 sd = &state->sd; 355 356 v4l2_i2c_subdev_init(sd, client, &ths7303_ops); 356 - 357 - /* store the driver data to differntiate the chip */ 358 - state->driver_data = (int)id->driver_data; 359 357 360 358 /* set to default 480I_576I filter mode */ 361 359 if (ths7303_setval(sd, THS7303_FILTER_MODE_480I_576I) < 0) {