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 <firstname.lastname@example.org>
Reviewed-by: Ulrich Hecht <email@example.com>
Reviewed-by: Wolfram Sang <firstname.lastname@example.org>
Reviewed-by: Simon Horman <email@example.com>
Acked-by: Dirk Behme <firstname.lastname@example.org>
- Add Reviewed-by, Acked-by.
1 file changed