Skip to content
Commit 60faf2b8 authored by Michael Tretter's avatar Michael Tretter Committed by Hans Verkuil
Browse files

media: rockchip: rga: use clamp() to clamp size to limits



The try_fmt should limit the width and height to the know limits of the
RGA. Use the clamp() helper instead of open coding the clamping.

Signed-off-by: default avatarMichael Tretter <m.tretter@pengutronix.de>
Signed-off-by: default avatarHans Verkuil <hverkuil-cisco@xs4all.nl>
parent ec9ef8dd
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment