]> git.ipfire.org Git - thirdparty/linux.git/commit
media: pisp_be: Use clamp() and define max sizes
authorJacopo Mondi <jacopo.mondi@ideasonboard.com>
Thu, 12 Jun 2025 14:58:21 +0000 (16:58 +0200)
committerHans Verkuil <hverkuil@xs4all.nl>
Thu, 3 Jul 2025 07:25:01 +0000 (09:25 +0200)
commitaa89281bbc0b61610c96074c6390aed44474ebd0
tree91d60e682e885cf0eb4b5eb246ab05ca94250f2c
parente9bb2eacc7222ff8210903eb3b7d56709cc53228
media: pisp_be: Use clamp() and define max sizes

Use the clamp() function from minmax.h and provide a define for the max
sizes as they will be used in subsequent patches.

Reviewed-by: Daniel Scally <dan.scally@ideasonboard.com>
Reviewed-by: Stefan Klug <stefan.klug@ideasonboard.com>
Signed-off-by: Jacopo Mondi <jacopo.mondi@ideasonboard.com>
Signed-off-by: Hans Verkuil <hverkuil@xs4all.nl>
drivers/media/platform/raspberrypi/pisp_be/pisp_be.c
include/uapi/linux/media/raspberrypi/pisp_be_config.h