media: i2c: ths7303: remove unused member driver_data
PATCH 1/1 media: i2c: ths7303: remove unused member driver_data
From: "Lad, Prabhakar" <[email protected]>
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.
--- drivers/media/i2c/ths7303.c | 4 ---- 1 file changed, 4 deletions(-)
drivers/media/i2c/ths7303.c +0 -4
@@ -38,7 +38,6 @@ struct ths7303_state {struct v4l2_bt_timings bt;int std_id;int stream_on; -int driver_data; };enum ths7303_filter_mode {
@@ -355,9 +354,6 @@ static int ths7303_probe(struct i2c_client *client, sd = &state->sd;v4l2_i2c_subdev_init (sd, client, &ths7303_ops); -/* store the driver data to differntiate the chip */ - state->driver_data = (int )id->driver_data; -/* set to default 480I_576I filter mode */ if (ths7303_setval (sd,THS7303_FILTER_MODE_480I_576I ) <0 ) {v4l_err (client,"Setting to 480I_576I filter mode failed!\n" );
Signature · 1 line
1.7.9.5
Hi Prabhakar,
Thanks for the patch.
Quoted 6 lines · On Saturday 15 June 2013 22:04:10 Prabhakar Lad wrote:
From: "Lad, Prabhakar" <[email protected]>
This patch removes the
driver_datamember fromths7303_statestructure. Thedriver_datamember was intended to differentiate between ths7303 and ths7353 chip and get theg_chip_ident, But as of nowg_chip_identis obsolete, so there is no need ofdriver_data.
What tree it this based on ? linuxtv/master still uses driver_data in the ths7303_g_chip_ident() function.
Quoted 27 lines
Signed-off-by Lad, Prabhakar <[email protected]>--- drivers/media/i2c/ths7303.c | 4 ---- 1 file changed, 4 deletions(-)drivers/media/i2c/ths7303.c +0
-4@@ -38,7 +38,6 @@ struct ths7303_state {struct v4l2_bt_timings bt;int std_id;int stream_on; -int driver_data; };enum ths7303_filter_mode {@@ -355,9 +354,6 @@ static int ths7303_probe(struct i2c_client *client, sd = &state->sd;v4l2_i2c_subdev_init (sd, client, &ths7303_ops); -/* store the driver data to differntiate the chip */ - state->driver_data = (int )id->driver_data; -/* set to default 480I_576I filter mode */ if (ths7303_setval (sd,THS7303_FILTER_MODE_480I_576I ) <0 ) {v4l_err (client,"Setting to 480I_576I filter mode failed!\n" );
Signature · 3 lines
Regards, Laurent Pinchart
Hi Laurent,
Quoted 7 lines · Laurent Pinchart
Hi Prabhakar,
Thanks for the patch.
Quoted 2 lines · On Saturday 15 June 2013 22:04:10 Prabhakar Lad wrote:
From: "Lad, Prabhakar" <[email protected]>
Quoted 8 lines
Quoted 4 lines
This patch removes the
driver_datamember fromths7303_statestructure. Thedriver_datamember was intended to differentiate between ths7303 and ths7353 chip and get theg_chip_ident, But as of nowg_chip_identis obsolete, so there is no need ofdriver_data.What tree it this based on ? linuxtv/master still uses
driver_datain theths7303_g_chip_ident()function.
Ah forgot to mention this is based on Hans's branch
http://git.linuxtv.org/hverkuil/media_tree.git/shortlog/refs/heads/for-v3.11
Regards,
--Prabhakar Lad