Re: [PATCH v3 08/10] phy: phy-snps-eusb2: refactor reference clock init

From: Dmitry Baryshkov
Date: Fri Mar 21 2025 - 11:55:22 EST


On Fri, Mar 21, 2025 at 03:58:52PM +0200, Ivaylo Ivanov wrote:
> Instead of matching frequencies with a switch and case, introduce
> a table-based lookup. This improves readability, reduces redundancy,
> and makes it easier to extend support for additional frequencies in
> the future.
>
> Signed-off-by: Ivaylo Ivanov <ivo.ivanov.ivanov1@xxxxxxxxx>
> ---
> drivers/phy/phy-snps-eusb2.c | 61 +++++++++++++++++++-----------------
> 1 file changed, 32 insertions(+), 29 deletions(-)
>

Reviewed-by: Dmitry Baryshkov <dmitry.baryshkov@xxxxxxxxxxxxxxxx>

--
With best wishes
Dmitry