ravb: Factorise ravb_adjust_link function
authorBiju Das <biju.das.jz@bp.renesas.com>
Wed, 25 Aug 2021 07:01:50 +0000 (08:01 +0100)
committerDavid S. Miller <davem@davemloft.net>
Wed, 25 Aug 2021 10:18:17 +0000 (11:18 +0100)
commitcb21104f2c35c97a1c803c48f26ad99ff5c5c9d4
tree251ed5e3963c7cae4c625e5643e88c2451bd079b
parentd5d95c11365bc880669bbc52786b176cf60dcd92
ravb: Factorise ravb_adjust_link function

R-Car supports 100 and 1000 Mbps transfer speed whereas RZ/G2L
in addition support 10Mbps. Factorise ravb_adjust_link function
in order to support 10Mbps speed.

Signed-off-by: Biju Das <biju.das.jz@bp.renesas.com>
Reviewed-by: Lad Prabhakar <prabhakar.mahadev-lad.rj@bp.renesas.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/renesas/ravb.h
drivers/net/ethernet/renesas/ravb_main.c