serial: sh-sci: Fix HSCIF RX sampling point adjustment

The calculation of the sampling point has min() and max() exchanged.
Fix this by using the clamp() helper.

Fixes: 63ba1e00f178a448 ("serial: sh-sci: Support for HSCIF RX sampling point adjustment")
Signed-off-by: Geert Uytterhoeven <>
Reviewed-by: Ulrich Hecht <>
Reviewed-by: Wolfram Sang <>
Reviewed-by: Simon Horman <>
Acked-by: Dirk Behme <>
  - Add Reviewed-by, Acked-by.
1 file changed