summaryrefslogtreecommitdiff
path: root/drivers/mfd
diff options
context:
space:
mode:
authorMarcus Folkesson <marcus.folkesson@gmail.com>2024-09-25 12:19:53 +0200
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2024-12-09 10:32:13 +0100
commitd80635d7ebefdbbb8eb398a2663183bb91b7f9e8 (patch)
tree98e614d6210152089a22fa31a74b84a8643c8b63 /drivers/mfd
parent7c8ac49aa18ad823c541d8b5d826a5b3c43ef19e (diff)
downloadlinux-d80635d7ebefdbbb8eb398a2663183bb91b7f9e8.tar.gz
linux-d80635d7ebefdbbb8eb398a2663183bb91b7f9e8.tar.bz2
linux-d80635d7ebefdbbb8eb398a2663183bb91b7f9e8.zip
mfd: da9052-spi: Change read-mask to write-mask
[ Upstream commit 2e3378f6c79a1b3f7855ded1ef306ea4406352ed ] Driver has mixed up the R/W bit. The LSB bit is set on write rather than read. Change it to avoid nasty things to happen. Fixes: e9e9d3973594 ("mfd: da9052: Avoid setting read_flag_mask for da9052-i2c driver") Signed-off-by: Marcus Folkesson <marcus.folkesson@gmail.com> Link: https://lore.kernel.org/r/20240925-da9052-v2-1-f243e4505b07@gmail.com Signed-off-by: Lee Jones <lee@kernel.org> Signed-off-by: Sasha Levin <sashal@kernel.org>
Diffstat (limited to 'drivers/mfd')
-rw-r--r--drivers/mfd/da9052-spi.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/mfd/da9052-spi.c b/drivers/mfd/da9052-spi.c
index be5f2b34e18a..80fc5c0cac2f 100644
--- a/drivers/mfd/da9052-spi.c
+++ b/drivers/mfd/da9052-spi.c
@@ -37,7 +37,7 @@ static int da9052_spi_probe(struct spi_device *spi)
spi_set_drvdata(spi, da9052);
config = da9052_regmap_config;
- config.read_flag_mask = 1;
+ config.write_flag_mask = 1;
config.reg_bits = 7;
config.pad_bits = 1;
config.val_bits = 8;