can: tcan4x5x: remove mram_start and reg_offset from struct tcan4x5x_priv
authorMarc Kleine-Budde <mkl@pengutronix.de>
Mon, 30 Nov 2020 13:37:08 +0000 (14:37 +0100)
committerMarc Kleine-Budde <mkl@pengutronix.de>
Mon, 30 Nov 2020 13:55:25 +0000 (14:55 +0100)
commit225dfc2552005ea8dd2b50f6a4a04a2b9ff52d3e
tree47897b15aa60dd56c32560eb6c572652107f8592
parent018a0c5845d6da8613a1448b169e96c81dce2531
can: tcan4x5x: remove mram_start and reg_offset from struct tcan4x5x_priv

Both struct tcan4x5x_priv::mram_start and struct tcan4x5x_priv::reg_offset are
only assigned once with a constant and then always used read-only. This patch
changes the driver to use the constant directly instead.

Link: https://lore.kernel.org/r/20201130133713.269256-2-mkl@pengutronix.de
Reviewed-by: Dan Murphy <dmurphy@ti.com>
Signed-off-by: Marc Kleine-Budde <mkl@pengutronix.de>
drivers/net/can/m_can/tcan4x5x.c