]> git.ipfire.org Git - thirdparty/linux.git/commit
media: ivtv: use clamp in ivtv_try_fmt_vid_{out,cap}
authorThorsten Blum <thorsten.blum@linux.dev>
Sun, 17 May 2026 17:17:43 +0000 (19:17 +0200)
committerHans Verkuil <hverkuil+cisco@kernel.org>
Wed, 20 May 2026 07:01:58 +0000 (09:01 +0200)
commit5d579ece43f4ed2d88bd5e14d6de682dbc532954
tree0371ce72c2722b54c33b34e2026b52119db3449f
parentffdb7c4ecaed0325cbc20d78f601fec235c49487
media: ivtv: use clamp in ivtv_try_fmt_vid_{out,cap}

Replace multiple min(), max() calls with clamp().

Signed-off-by: Thorsten Blum <thorsten.blum@linux.dev>
Signed-off-by: Hans Verkuil <hverkuil+cisco@kernel.org>
drivers/media/pci/ivtv/ivtv-ioctl.c