[libcamera-devel] ipa: raspberrrypi: Remove duplicate comment
diff mbox series

Message ID 20210328075954.13182-1-sebastian.fricke@posteo.net
State Accepted
Commit 6a84c563469f11ea426e1773f8fd9b3be1172ad2
Headers show
Series
  • [libcamera-devel] ipa: raspberrrypi: Remove duplicate comment
Related show

Commit Message

Sebastian Fricke March 28, 2021, 7:59 a.m. UTC
The exact same comment is used two times within 5 lines.
Remove one of them as it is redundant.

Signed-off-by: Sebastian Fricke <sebastian.fricke@posteo.net>
---
 src/ipa/raspberrypi/raspberrypi.cpp | 1 -
 1 file changed, 1 deletion(-)

Comments

Laurent Pinchart March 28, 2021, 4:51 p.m. UTC | #1
Hi Sebastian,

Thank you for the patch.

On Sun, Mar 28, 2021 at 09:59:54AM +0200, Sebastian Fricke wrote:
> The exact same comment is used two times within 5 lines.
> Remove one of them as it is redundant.
> 
> Signed-off-by: Sebastian Fricke <sebastian.fricke@posteo.net>

Reviewed-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>

> ---
>  src/ipa/raspberrypi/raspberrypi.cpp | 1 -
>  1 file changed, 1 deletion(-)
> 
> diff --git a/src/ipa/raspberrypi/raspberrypi.cpp b/src/ipa/raspberrypi/raspberrypi.cpp
> index 1c928b72..ed2d9a54 100644
> --- a/src/ipa/raspberrypi/raspberrypi.cpp
> +++ b/src/ipa/raspberrypi/raspberrypi.cpp
> @@ -208,7 +208,6 @@ void IPARPi::start(const ControlList &controls, ipa::RPi::StartConfig *startConf
>  	agcStatus.shutter_time = 0.0;
>  	agcStatus.analogue_gain = 0.0;
>  
> -	/* SwitchMode may supply updated exposure/gain values to use. */
>  	metadata.Get("agc.status", agcStatus);
>  	if (agcStatus.shutter_time != 0.0 && agcStatus.analogue_gain != 0.0) {
>  		ControlList ctrls(sensorCtrls_);
Jean-Michel Hautbois March 28, 2021, 9:04 p.m. UTC | #2
Hi Sebastian,

On 28/03/2021 18:51, Laurent Pinchart wrote:
> Hi Sebastian,
> 
> Thank you for the patch.
> 
> On Sun, Mar 28, 2021 at 09:59:54AM +0200, Sebastian Fricke wrote:
>> The exact same comment is used two times within 5 lines.
>> Remove one of them as it is redundant.
>>
>> Signed-off-by: Sebastian Fricke <sebastian.fricke@posteo.net>
> 
> Reviewed-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>

There is a typo in the commit title (too much r's :-)).
Otherwise:
Reviewed-by: Jean-Michel Hautbois <jeanmichel.hautbois@ideasonboard.com>

>> ---
>>  src/ipa/raspberrypi/raspberrypi.cpp | 1 -
>>  1 file changed, 1 deletion(-)
>>
>> diff --git a/src/ipa/raspberrypi/raspberrypi.cpp b/src/ipa/raspberrypi/raspberrypi.cpp
>> index 1c928b72..ed2d9a54 100644
>> --- a/src/ipa/raspberrypi/raspberrypi.cpp
>> +++ b/src/ipa/raspberrypi/raspberrypi.cpp
>> @@ -208,7 +208,6 @@ void IPARPi::start(const ControlList &controls, ipa::RPi::StartConfig *startConf
>>  	agcStatus.shutter_time = 0.0;
>>  	agcStatus.analogue_gain = 0.0;
>>  
>> -	/* SwitchMode may supply updated exposure/gain values to use. */
>>  	metadata.Get("agc.status", agcStatus);
>>  	if (agcStatus.shutter_time != 0.0 && agcStatus.analogue_gain != 0.0) {
>>  		ControlList ctrls(sensorCtrls_);
>
Sebastian Fricke March 29, 2021, 3:34 a.m. UTC | #3
Hey Jean-Michel,

On 28.03.2021 23:04, Jean-Michel Hautbois wrote:
>Hi Sebastian,
>
>On 28/03/2021 18:51, Laurent Pinchart wrote:
>> Hi Sebastian,
>>
>> Thank you for the patch.
>>
>> On Sun, Mar 28, 2021 at 09:59:54AM +0200, Sebastian Fricke wrote:
>>> The exact same comment is used two times within 5 lines.
>>> Remove one of them as it is redundant.
>>>
>>> Signed-off-by: Sebastian Fricke <sebastian.fricke@posteo.net>
>>
>> Reviewed-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
>
>There is a typo in the commit title (too much r's :-)).
>Otherwise:
>Reviewed-by: Jean-Michel Hautbois <jeanmichel.hautbois@ideasonboard.com>

Woops fixing a typo with a typo ;)
Thank you for notifying.

Greetings,
Sebastian

>
>>> ---
>>>  src/ipa/raspberrypi/raspberrypi.cpp | 1 -
>>>  1 file changed, 1 deletion(-)
>>>
>>> diff --git a/src/ipa/raspberrypi/raspberrypi.cpp b/src/ipa/raspberrypi/raspberrypi.cpp
>>> index 1c928b72..ed2d9a54 100644
>>> --- a/src/ipa/raspberrypi/raspberrypi.cpp
>>> +++ b/src/ipa/raspberrypi/raspberrypi.cpp
>>> @@ -208,7 +208,6 @@ void IPARPi::start(const ControlList &controls, ipa::RPi::StartConfig *startConf
>>>  	agcStatus.shutter_time = 0.0;
>>>  	agcStatus.analogue_gain = 0.0;
>>>
>>> -	/* SwitchMode may supply updated exposure/gain values to use. */
>>>  	metadata.Get("agc.status", agcStatus);
>>>  	if (agcStatus.shutter_time != 0.0 && agcStatus.analogue_gain != 0.0) {
>>>  		ControlList ctrls(sensorCtrls_);
>>

Patch
diff mbox series

diff --git a/src/ipa/raspberrypi/raspberrypi.cpp b/src/ipa/raspberrypi/raspberrypi.cpp
index 1c928b72..ed2d9a54 100644
--- a/src/ipa/raspberrypi/raspberrypi.cpp
+++ b/src/ipa/raspberrypi/raspberrypi.cpp
@@ -208,7 +208,6 @@  void IPARPi::start(const ControlList &controls, ipa::RPi::StartConfig *startConf
 	agcStatus.shutter_time = 0.0;
 	agcStatus.analogue_gain = 0.0;
 
-	/* SwitchMode may supply updated exposure/gain values to use. */
 	metadata.Get("agc.status", agcStatus);
 	if (agcStatus.shutter_time != 0.0 && agcStatus.analogue_gain != 0.0) {
 		ControlList ctrls(sensorCtrls_);