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(-) -- 2.34.1