From 55dce174c05af46ab0f86da7de0c4447be038973 Mon Sep 17 00:00:00 2001 From: David Phillips Date: Sun, 9 May 2021 11:54:28 +1200 Subject: 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. --- simple-mfd-spi.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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) -- cgit v1.1