aboutsummaryrefslogtreecommitdiff
path: root/cds9k-mfd-spi.c
diff options
context:
space:
mode:
authorDavid Phillips <david@yeah.nah.nz>2021-05-09 22:03:46 +1200
committerDavid Phillips <david@yeah.nah.nz>2021-05-09 22:03:46 +1200
commit9de30f1f92924be479dd3ed07a4638e46a83098b (patch)
tree24250cae5392bdd28cefc38bc63b03702f7cd3f1 /cds9k-mfd-spi.c
parent1bfbf7c584da27d2c194557c64037596b2e134b1 (diff)
downloadcds9k-9de30f1f92924be479dd3ed07a4638e46a83098b.tar.xz
Add maximum register
This allows debug through debugfs
Diffstat (limited to 'cds9k-mfd-spi.c')
-rw-r--r--cds9k-mfd-spi.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/cds9k-mfd-spi.c b/cds9k-mfd-spi.c
index 9f04ffb..46d1c87 100644
--- a/cds9k-mfd-spi.c
+++ b/cds9k-mfd-spi.c
@@ -4,9 +4,10 @@
#include <linux/regmap.h>
static const struct regmap_config simple_regmap_config = {
+ .max_register = 0x7f,
.reg_bits = 8,
- .val_bits = 16,
.pad_bits = 8,
+ .val_bits = 16,
};
static int david_cds9k_probe(struct spi_device *spi)