]> git.baikalelectronics.ru Git - kernel.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)
commit0e313436b799199539c34a24d8e3303c0daeeead
treef9ac364242637376e8cbd64d2a76632fdfc65d6d
parentc274a72dd42f752f535d059b89b8e532c7c5419e
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