Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1635996

Re: [media-s3c-camif] question about arguments position

From "Gustavo A. R. Silva" <garsilva@embeddedor.com>
Newsgroups linux.kernel
Subject Re: [media-s3c-camif] question about arguments position
Date 2017-05-04 22:00 +0200
Message-ID <tDv4R-80a-3@gated-at.bofh.it> (permalink)
References <tDuit-7H9-3@gated-at.bofh.it> <tDuLv-7T3-1@gated-at.bofh.it>
Organization linux.* mail to news gateway

Show all headers | View raw


Hello Sylwester,

Quoting Sylwester Nawrocki <sylvester.nawrocki@gmail.com>:

> Hi Gustavo,
>
> On 05/04/2017 09:05 PM, Gustavo A. R. Silva wrote:
>> The issue here is that the position of arguments in the call to
>> camif_hw_set_effect() function do not match the order of the parameters:
>>
>> camif->colorfx_cb is passed to cr
>> camif->colorfx_cr is passed to cb
>>
>> This is the function prototype:
>>
>> void camif_hw_set_effect(struct camif_dev *camif, unsigned int effect,
>>             unsigned int cr, unsigned int cb)
>>
>> My question here is if this is intentional?
>>
>> In case it is not, I will send a patch to fix it. But first it would be
>> great to hear any comment about it.
>
> You are right, it seems you have found a real bug. Feel free to send a patch.
> The best thing to do now might be to change the function prototype to:
>
> void camif_hw_set_effect(struct camif_dev *camif, unsigned int effect,
>              unsigned int cb, unsigned int cr)
>

OK, I'll send a patch for this shortly.

Thanks for clarifying.
--
Gustavo A. R. Silva

Back to linux.kernel | Previous | NextPrevious in thread | Next in thread | Find similar | Unroll thread


Thread

[media-s3c-camif] question about arguments position "Gustavo A. R. Silva" <garsilva@embeddedor.com> - 2017-05-04 21:10 +0200
  Re: [media-s3c-camif] question about arguments position Sylwester Nawrocki <sylvester.nawrocki@gmail.com> - 2017-05-04 21:40 +0200
    Re: [media-s3c-camif] question about arguments position "Gustavo A. R. Silva" <garsilva@embeddedor.com> - 2017-05-04 22:00 +0200
      [PATCH] media: platform: s3c-camif: fix function prototype "Gustavo A. R. Silva" <garsilva@embeddedor.com> - 2017-05-04 23:50 +0200

csiph-web