diff options
author | Marc Kleine-Budde <mkl@pengutronix.de> | 2020-12-16 00:17:41 +0100 |
---|---|---|
committer | Marc Kleine-Budde <mkl@pengutronix.de> | 2021-01-06 15:15:40 +0100 |
commit | 6e1caaf8ed22eb700cc47ec353816eee33186c1c (patch) | |
tree | 9a8354783c2c7e00fd0e3111a152881d4495ac14 /drivers/net | |
parent | bf722fdd3bc4d0285a131248b8254b30f1f8474a (diff) | |
download | linux-stable-6e1caaf8ed22eb700cc47ec353816eee33186c1c.tar.gz linux-stable-6e1caaf8ed22eb700cc47ec353816eee33186c1c.tar.bz2 linux-stable-6e1caaf8ed22eb700cc47ec353816eee33186c1c.zip |
can: tcan4x5x: fix max register value
This patch fixes the max register value for the regmap.
Reviewed-by: Dan Murphy <dmurphy@ti.com>
Tested-by: Sean Nyekjaer <sean@geanix.com>
Link: https://lore.kernel.org/r/20201215231746.1132907-12-mkl@pengutronix.de
Signed-off-by: Marc Kleine-Budde <mkl@pengutronix.de>
Diffstat (limited to 'drivers/net')
-rw-r--r-- | drivers/net/can/m_can/tcan4x5x-regmap.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/net/can/m_can/tcan4x5x-regmap.c b/drivers/net/can/m_can/tcan4x5x-regmap.c index 4d43c145fdec..73be4b661305 100644 --- a/drivers/net/can/m_can/tcan4x5x-regmap.c +++ b/drivers/net/can/m_can/tcan4x5x-regmap.c @@ -12,7 +12,7 @@ #define TCAN4X5X_WRITE_CMD (0x61 << 24) #define TCAN4X5X_READ_CMD (0x41 << 24) -#define TCAN4X5X_MAX_REGISTER 0x8fff +#define TCAN4X5X_MAX_REGISTER 0x8ffc static int tcan4x5x_regmap_gather_write(void *context, const void *reg, size_t reg_len, const void *val, |