mbox series

[-next,0/2] media: atomisp: use clamp() instead of min(max())

Message ID 20240830011752.603433-1-lizetao1@huawei.com (mailing list archive)
Headers show
Series media: atomisp: use clamp() instead of min(max()) | expand

Message

Li Zetao Aug. 30, 2024, 1:17 a.m. UTC
Hi,

When it needs to get the value of a certain interval [min, max],
it is easier to understand using clamp(x, min, max) instead of
min(max(x, min), max). What needs to be determined is that min
should be smaller than max.

Li Zetao (2):
  media: atomisp: use clamp() in ia_css_eed1_8_encode()
  media: atomisp: use clamp() in compute_coring()

 .../pci/isp/kernels/eed1_8/ia_css_eed1_8.host.c      |  2 +-
 .../pci/isp/kernels/xnr/xnr_3.0/ia_css_xnr3.host.c   | 12 ++++++------
 2 files changed, 7 insertions(+), 7 deletions(-)