]> git.proxmox.com Git - mirror_ubuntu-kernels.git/commit
can: tcan4x5x: tcan4x5x_regmap_init(): use spi as context pointer
authorMarc Kleine-Budde <mkl@pengutronix.de>
Tue, 15 Dec 2020 23:17:40 +0000 (00:17 +0100)
committerMarc Kleine-Budde <mkl@pengutronix.de>
Wed, 6 Jan 2021 14:15:39 +0000 (15:15 +0100)
commitbf722fdd3bc4d0285a131248b8254b30f1f8474a
treef9ac364242637376e8cbd64d2a76632fdfc65d6d
parent0c05345210fc265d24f7b800516d2a4eac0c56c1
can: tcan4x5x: tcan4x5x_regmap_init(): use spi as context pointer

This patch replaces the context pointer of the regmap callback functions by a
pointer to the spi_device. This saves one level of indirection in the
callbacks.

Reviewed-by: Dan Murphy <dmurphy@ti.com>
Tested-by: Sean Nyekjaer <sean@geanix.com>
Link: https://lore.kernel.org/r/20201215231746.1132907-11-mkl@pengutronix.de
Signed-off-by: Marc Kleine-Budde <mkl@pengutronix.de>
drivers/net/can/m_can/tcan4x5x-regmap.c