]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
can: rcar_canfd: Add sh variable to struct rcar_canfd_hw_info
authorBiju Das <biju.das.jz@bp.renesas.com>
Thu, 17 Apr 2025 05:43:17 +0000 (06:43 +0100)
committerMarc Kleine-Budde <mkl@pengutronix.de>
Wed, 21 May 2025 12:31:25 +0000 (14:31 +0200)
commitc5670c23d67dd81e71262bb7c5942502cd9df62e
tree6f0f1a3baa4d5fe80984e612561cfac0db624c0e
parent5026d2acaefab81857390c00c771ee6a2fa65461
can: rcar_canfd: Add sh variable to struct rcar_canfd_hw_info

R-Car Gen3 and Gen4 have some differences in the shift bits. Introduce a
struct rcar_canfd_shift_data to hold these values and add the struct
rcar_canfd_shift_data variable sh to struct rcar_canfd_hw_info to handle
these differences. After this, drop the unused functions reg_gen4() and
is_gen4().

Reviewed-by: Geert Uytterhoeven <geert+renesas@glider.be>
Signed-off-by: Biju Das <biju.das.jz@bp.renesas.com>
Link: https://patch.msgid.link/20250417054320.14100-17-biju.das.jz@bp.renesas.com
Signed-off-by: Marc Kleine-Budde <mkl@pengutronix.de>
drivers/net/can/rcar/rcar_canfd.c