aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDavid Phillips <david@yeah.nah.nz>2021-05-09 11:54:28 +1200
committerDavid Phillips <david@yeah.nah.nz>2021-05-09 11:54:28 +1200
commit55dce174c05af46ab0f86da7de0c4447be038973 (patch)
tree9908d4cae38c9f335cc9ad25374fcf9ce47e56c4
parent3b81e5b0b54e9a5adb6ae9014e60253dbe94401d (diff)
downloadcds9k-55dce174c05af46ab0f86da7de0c4447be038973.tar.xz
Adjust regmap settings
The CDS9K has been changed to use an 8-bit pad between the register and value, and 16-bit values. The driver should be renamed at some point too, as this is less of a "simple MFD", but tailored to CDS9K protocol.
-rw-r--r--simple-mfd-spi.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/simple-mfd-spi.c b/simple-mfd-spi.c
index e63dc24..6118196 100644
--- a/simple-mfd-spi.c
+++ b/simple-mfd-spi.c
@@ -5,7 +5,8 @@
static const struct regmap_config simple_regmap_config = {
.reg_bits = 8,
- .val_bits = 8,
+ .val_bits = 16,
+ .pad_bits = 8,
};
static int david_cds9k_probe(struct spi_device *spi)