summaryrefslogtreecommitdiffstats
path: root/drivers/net/can/m_can/tcan4x5x-regmap.c
diff options
context:
space:
mode:
authorMarc Kleine-Budde <mkl@pengutronix.de>2020-12-16 00:17:38 +0100
committerMarc Kleine-Budde <mkl@pengutronix.de>2021-01-06 15:15:39 +0100
commit52be977b3ade57570ff1110a10755866ded8a1a6 (patch)
tree9ab22368e6571f84526f12cfe70bdd6f67888b65 /drivers/net/can/m_can/tcan4x5x-regmap.c
parentb9c30ef344940610e396d2063a1f50fbb79bb62d (diff)
downloadlinux-52be977b3ade57570ff1110a10755866ded8a1a6.tar.bz2
can: tcan4x5x: rename regmap_spi_gather_write() -> tcan4x5x_regmap_gather_write()
This patch renames the regmap_spi_gather_write() function to tcan4x5x_regmap_gather_write(). Now it has a "tcan4x5x_" prefix as all other functions in this driver. Reviewed-by: Dan Murphy <dmurphy@ti.com> Tested-by: Sean Nyekjaer <sean@geanix.com> Link: https://lore.kernel.org/r/20201215231746.1132907-9-mkl@pengutronix.de Signed-off-by: Marc Kleine-Budde <mkl@pengutronix.de>
Diffstat (limited to 'drivers/net/can/m_can/tcan4x5x-regmap.c')
-rw-r--r--drivers/net/can/m_can/tcan4x5x-regmap.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/drivers/net/can/m_can/tcan4x5x-regmap.c b/drivers/net/can/m_can/tcan4x5x-regmap.c
index 8905fc36b00a..8f718f4395c3 100644
--- a/drivers/net/can/m_can/tcan4x5x-regmap.c
+++ b/drivers/net/can/m_can/tcan4x5x-regmap.c
@@ -14,9 +14,9 @@
#define TCAN4X5X_MAX_REGISTER 0x8fff
-static int regmap_spi_gather_write(void *context, const void *reg,
- size_t reg_len, const void *val,
- size_t val_len)
+static int tcan4x5x_regmap_gather_write(void *context, const void *reg,
+ size_t reg_len, const void *val,
+ size_t val_len)
{
struct device *dev = context;
struct spi_device *spi = to_spi_device(dev);
@@ -41,7 +41,7 @@ static int tcan4x5x_regmap_write(void *context, const void *data, size_t count)
u16 *reg = (u16 *)(data);
const u32 *val = data + 4;
- return regmap_spi_gather_write(context, reg, 4, val, count - 4);
+ return tcan4x5x_regmap_gather_write(context, reg, 4, val, count - 4);
}
static int tcan4x5x_regmap_read(void *context,
@@ -65,7 +65,7 @@ static const struct regmap_config tcan4x5x_regmap = {
static const struct regmap_bus tcan4x5x_bus = {
.write = tcan4x5x_regmap_write,
- .gather_write = regmap_spi_gather_write,
+ .gather_write = tcan4x5x_regmap_gather_write,
.read = tcan4x5x_regmap_read,
.reg_format_endian_default = REGMAP_ENDIAN_NATIVE,
.val_format_endian_default = REGMAP_ENDIAN_NATIVE,