public inbox for linux-media@vger.kernel.org
 help / color / mirror / Atom feed
From: Hans Verkuil <hverkuil@xs4all.nl>
To: Guennadi Liakhovetski <g.liakhovetski@gmx.de>
Cc: linux-media@vger.kernel.org,
	Hans Verkuil <hans.verkuil@cisco.com>,
	Scott Jiang <scott.jiang.linux@gmail.com>,
	Jonathan Corbet <corbet@lwn.net>,
	Kamil Debski <k.debski@samsung.com>
Subject: Re: [PATCH 1/7] v4l2: replace enum_mbus_fmt by enum_mbus_code
Date: Fri, 17 Apr 2015 10:15:47 +0200	[thread overview]
Message-ID: <5530C133.3070500@xs4all.nl> (raw)
In-Reply-To: <Pine.LNX.4.64.1504152204330.32631@axis700.grange>

On 04/15/2015 10:08 PM, Guennadi Liakhovetski wrote:
> On Thu, 9 Apr 2015, Hans Verkuil wrote:
> 
>> From: Hans Verkuil <hans.verkuil@cisco.com>
>>
>> Replace all calls to the enum_mbus_fmt video op by the pad
>> enum_mbus_code op and remove the duplicate video op.
>>
>> Signed-off-by: Hans Verkuil <hans.verkuil@cisco.com>
>> Cc: Guennadi Liakhovetski <g.liakhovetski@gmx.de>
>> Cc: Scott Jiang <scott.jiang.linux@gmail.com>
>> Cc: Jonathan Corbet <corbet@lwn.net>
>> Cc: Kamil Debski <k.debski@samsung.com>
>> ---
> 
> [snip]
> 
>> diff --git a/drivers/media/i2c/soc_camera/mt9m111.c b/drivers/media/i2c/soc_camera/mt9m111.c
>> index 441e0fd..ef8682c 100644
>> --- a/drivers/media/i2c/soc_camera/mt9m111.c
>> +++ b/drivers/media/i2c/soc_camera/mt9m111.c
>> @@ -839,13 +839,14 @@ static struct v4l2_subdev_core_ops mt9m111_subdev_core_ops = {
>>  #endif
>>  };
>>  
>> -static int mt9m111_enum_fmt(struct v4l2_subdev *sd, unsigned int index,
>> -			    u32 *code)
>> +static int mt9m111_enum_mbus_code(struct v4l2_subdev *sd,
>> +		struct v4l2_subdev_pad_config *cfg,
>> +		struct v4l2_subdev_mbus_code_enum *code)
>>  {
>> -	if (index >= ARRAY_SIZE(mt9m111_colour_fmts))
>> +	if (code->code || code->index >= ARRAY_SIZE(mt9m111_colour_fmts))
> 
> Didn't you mean 
> 
> +	if (code->pad || code->index >= ARRAY_SIZE(mt9m111_colour_fmts))
> 
> ?

Nice catch! Thanks, I've fixed this.

Regards,

	Hans

  reply	other threads:[~2015-04-17  8:16 UTC|newest]

Thread overview: 22+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-04-09 10:21 [PATCH 0/7] v4l2: convert video ops to pad ops Hans Verkuil
2015-04-09 10:21 ` [PATCH 1/7] v4l2: replace enum_mbus_fmt by enum_mbus_code Hans Verkuil
2015-04-15 20:08   ` Guennadi Liakhovetski
2015-04-17  8:15     ` Hans Verkuil [this message]
2015-04-16 10:08   ` Scott Jiang
2015-04-16 20:44   ` Lad, Prabhakar
2015-04-09 10:21 ` [PATCH 2/7] v4l2: replace video op g_mbus_fmt by pad op get_fmt Hans Verkuil
2015-04-15 20:30   ` Guennadi Liakhovetski
2015-04-16 20:50   ` Lad, Prabhakar
2015-06-14 22:08   ` Laurent Pinchart
2015-06-15 10:25     ` Hans Verkuil
2015-06-16 15:53       ` Laurent Pinchart
2015-04-09 10:21 ` [PATCH 3/7] v4l2: replace try_mbus_fmt by set_fmt Hans Verkuil
2015-05-02 17:57   ` Guennadi Liakhovetski
2015-04-09 10:21 ` [PATCH 4/7] v4l2: replace s_mbus_fmt " Hans Verkuil
2015-04-09 10:21 ` [PATCH 5/7] v4l2: replace try_mbus_fmt by set_fmt in bridge drivers Hans Verkuil
2015-04-16  9:50   ` Scott Jiang
2015-04-09 10:21 ` [PATCH 6/7] v4l2: replace s_mbus_fmt " Hans Verkuil
2015-04-16  9:48   ` Scott Jiang
2015-04-16 20:54   ` Lad, Prabhakar
2015-04-09 10:21 ` [PATCH 7/7] v4l2: remove g/s_crop and cropcap from video ops Hans Verkuil
2015-04-12 13:03   ` Laurent Pinchart

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=5530C133.3070500@xs4all.nl \
    --to=hverkuil@xs4all.nl \
    --cc=corbet@lwn.net \
    --cc=g.liakhovetski@gmx.de \
    --cc=hans.verkuil@cisco.com \
    --cc=k.debski@samsung.com \
    --cc=linux-media@vger.kernel.org \
    --cc=scott.jiang.linux@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