Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

mfd: da9052-spi: Change read-mask to write-mask

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>

authored by

Marcus Folkesson and committed by
Lee Jones
2e3378f6 63c1bce0

+1 -1
+1 -1
drivers/mfd/da9052-spi.c
··· 37 37 spi_set_drvdata(spi, da9052); 38 38 39 39 config = da9052_regmap_config; 40 - config.read_flag_mask = 1; 40 + config.write_flag_mask = 1; 41 41 config.reg_bits = 7; 42 42 config.pad_bits = 1; 43 43 config.val_bits = 8;