Re: [PATCH] media: i2c: Replace nested min() with single min3()

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



…
> +++ b/drivers/media/i2c/vgxy61.c
> @@ -892,8 +892,8 @@ static u32 vgxy61_get_expo_long_max(struct vgxy61_dev *sensor,
>  	third_rot_max_expo = (sensor->frame_length / 71) * short_expo_ratio;
>
>  	/* Take the minimum from all rules */
> -	return min(min(first_rot_max_expo, second_rot_max_expo),
> -		   third_rot_max_expo);
> +	return min3(first_rot_max_expo, second_rot_max_expo,
> +		    third_rot_max_expo);
…

Can the following source code variant be applied?

+	return min3(first_rot_max_expo, second_rot_max_expo, third_rot_max_expo);


Regards,
Markus





[Index of Archives]     [Linux Input]     [Video for Linux]     [Gstreamer Embedded]     [Mplayer Users]     [Linux USB Devel]     [Linux Audio Users]     [Linux Kernel]     [Linux SCSI]     [Yosemite Backpacking]

  Powered by Linux