Commit 6e1caaf8 authored by Marc Kleine-Budde's avatar Marc Kleine-Budde

can: tcan4x5x: fix max register value

This patch fixes the max register value for the regmap.
Reviewed-by: default avatarDan Murphy <dmurphy@ti.com>
Tested-by: default avatarSean Nyekjaer <sean@geanix.com>
Link: https://lore.kernel.org/r/20201215231746.1132907-12-mkl@pengutronix.deSigned-off-by: default avatarMarc Kleine-Budde <mkl@pengutronix.de>
parent bf722fdd
...@@ -12,7 +12,7 @@ ...@@ -12,7 +12,7 @@
#define TCAN4X5X_WRITE_CMD (0x61 << 24) #define TCAN4X5X_WRITE_CMD (0x61 << 24)
#define TCAN4X5X_READ_CMD (0x41 << 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, static int tcan4x5x_regmap_gather_write(void *context, const void *reg,
size_t reg_len, const void *val, size_t reg_len, const void *val,
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment