From: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
To: Prabhakar Lad <prabhakar.csengg@gmail.com>
Cc: Hans Verkuil <hans.verkuil@cisco.com>,
Mauro Carvalho Chehab <mchehab@redhat.com>,
LMML <linux-media@vger.kernel.org>,
DLOS <davinci-linux-open-source@linux.davincidsp.com>,
LKML <linux-kernel@vger.kernel.org>
Subject: Re: [PATCH] media: i2c: ths7303: remove unused member driver_data
Date: Sun, 16 Jun 2013 01:51:22 +0200 [thread overview]
Message-ID: <2064603.dg6NN5EgtL@avalon> (raw)
In-Reply-To: <1371314050-25866-1-git-send-email-prabhakar.csengg@gmail.com>
Hi Prabhakar,
Thanks for the patch.
On Saturday 15 June 2013 22:04:10 Prabhakar Lad wrote:
> From: "Lad, Prabhakar" <prabhakar.csengg@gmail.com>
>
> 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.
What tree it this based on ? linuxtv/master still uses driver_data in the
ths7303_g_chip_ident() function.
> Signed-off-by: Lad, Prabhakar <prabhakar.csengg@gmail.com>
> ---
> drivers/media/i2c/ths7303.c | 4 ----
> 1 file changed, 4 deletions(-)
>
> diff --git a/drivers/media/i2c/ths7303.c b/drivers/media/i2c/ths7303.c
> index 2e17abc..0a2dacb 100644
> --- a/drivers/media/i2c/ths7303.c
> +++ b/drivers/media/i2c/ths7303.c
> @@ -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");
--
Regards,
Laurent Pinchart
next prev parent reply other threads:[~2013-06-15 23:51 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-06-15 16:34 [PATCH] media: i2c: ths7303: remove unused member driver_data Prabhakar Lad
2013-06-15 23:51 ` Laurent Pinchart [this message]
2013-06-16 1:58 ` Prabhakar Lad
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=2064603.dg6NN5EgtL@avalon \
--to=laurent.pinchart@ideasonboard.com \
--cc=davinci-linux-open-source@linux.davincidsp.com \
--cc=hans.verkuil@cisco.com \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-media@vger.kernel.org \
--cc=mchehab@redhat.com \
--cc=prabhakar.csengg@gmail.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox