]> git.ipfire.org Git - thirdparty/linux.git/commitdiff
mfd: da9052-spi: Change read-mask to write-mask
authorMarcus Folkesson <marcus.folkesson@gmail.com>
Wed, 25 Sep 2024 10:19:53 +0000 (12:19 +0200)
committerLee Jones <lee@kernel.org>
Wed, 16 Oct 2024 08:04:10 +0000 (09:04 +0100)
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>
drivers/mfd/da9052-spi.c

index be5f2b34e18aebc7a9506123b366af5a5447df43..80fc5c0cac2fb0e5e99e6db8972f80ae4155b226 100644 (file)
@@ -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;