diff options
author | Philippe Rétornaz <philippe.retornaz@epfl.ch> | 2012-05-29 05:06:28 -0400 |
---|---|---|
committer | Samuel Ortiz <sameo@linux.intel.com> | 2012-07-08 18:16:07 -0400 |
commit | 77a5b3701832801619dc13d3e902fd8a216e531b (patch) | |
tree | 4a2070651b79e1f719b775183ba4c30b01a5381e /drivers/mfd/mc13xxx-spi.c | |
parent | a7cc37a49876319b2f848290eefe3388dd82286b (diff) |
mfd: Fix mc13xxx SPI regmap
This fix the SPI regmap configuration, the wrong write flag was used.
Also, bits_per_word should not be set as the regmap spi implementation
uses a 8bits transfert granularity.
Signed-off-by: Philippe Rétornaz <philippe.retornaz@epfl.ch>
Tested-by: Fabio Estevam <fabio.estevam@freescale.com>
Signed-off-by: Samuel Ortiz <sameo@linux.intel.com>
Diffstat (limited to 'drivers/mfd/mc13xxx-spi.c')
-rw-r--r-- | drivers/mfd/mc13xxx-spi.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/mfd/mc13xxx-spi.c b/drivers/mfd/mc13xxx-spi.c index 3fcdab3eb8eb..5d1969f67d82 100644 --- a/drivers/mfd/mc13xxx-spi.c +++ b/drivers/mfd/mc13xxx-spi.c | |||
@@ -49,6 +49,7 @@ static struct regmap_config mc13xxx_regmap_spi_config = { | |||
49 | .reg_bits = 7, | 49 | .reg_bits = 7, |
50 | .pad_bits = 1, | 50 | .pad_bits = 1, |
51 | .val_bits = 24, | 51 | .val_bits = 24, |
52 | .write_flag_mask = 0x80, | ||
52 | 53 | ||
53 | .max_register = MC13XXX_NUMREGS, | 54 | .max_register = MC13XXX_NUMREGS, |
54 | 55 | ||
@@ -73,7 +74,6 @@ static int mc13xxx_spi_probe(struct spi_device *spi) | |||
73 | 74 | ||
74 | dev_set_drvdata(&spi->dev, mc13xxx); | 75 | dev_set_drvdata(&spi->dev, mc13xxx); |
75 | spi->mode = SPI_MODE_0 | SPI_CS_HIGH; | 76 | spi->mode = SPI_MODE_0 | SPI_CS_HIGH; |
76 | spi->bits_per_word = 32; | ||
77 | 77 | ||
78 | mc13xxx->dev = &spi->dev; | 78 | mc13xxx->dev = &spi->dev; |
79 | mutex_init(&mc13xxx->lock); | 79 | mutex_init(&mc13xxx->lock); |