patch "iio: accel: fxls8962af: add padding to regmap for SPI" added to char-misc-linus
Subsystems (2)
This is a note to let you know that I've just added the patch titled
iio: accel: fxls8962af: add padding to regmap for SPI
to my char-misc git tree which can be found at
git://git.kernel.org/pub/scm/linux/kernel/git/gregkh/char-misc.git
in the char-misc-linus branch.
The patch will show up in the next release of the linux-next tree (usually sometime within the next 24 hours during the week.)
The patch will hopefully also be merged in Linus's tree for the next -rc kernel release.
If you have any questions about this process, please let me know.
From ccbed9d8d2a5351d8238f2d3f0741c9a3176f752 Mon Sep 17 00:00:00 2001
From: Sean Nyekjaer <[email protected]>
Date: Mon, 20 Dec 2021 13:51:43 +0100
Subject: iio: accel: fxls8962af: add padding to regmap for SPI
Add missing don't care padding between address and data for SPI transfers
--- drivers/iio/accel/fxls8962af-core.c | 12 ++++++++++-- drivers/iio/accel/fxls8962af-i2c.c | 2 +- drivers/iio/accel/fxls8962af-spi.c | 2 +- drivers/iio/accel/fxls8962af.h | 3 ++- 4 files changed, 14 insertions(+), 5 deletions(-)
drivers/iio/accel/fxls8962af-core.c +10 -2
@@ -173,12 +173,20 @@ struct fxls8962af_data {u16 upper_thres; }; -const struct regmap_config fxls8962af_regmap_conf = { +const struct regmap_config fxls8962af_i2c_regmap_conf = { .reg_bits =8 , .val_bits =8 , .max_register =FXLS8962AF_MAX_REG , }; -EXPORT_SYMBOL_GPL (fxls8962af_regmap_conf); +EXPORT_SYMBOL_GPL (fxls8962af_i2c_regmap_conf); + +const struct regmap_config fxls8962af_spi_regmap_conf = { + .reg_bits =8 , + .pad_bits =8 , + .val_bits =8 , + .max_register =FXLS8962AF_MAX_REG , +}; +EXPORT_SYMBOL_GPL (fxls8962af_spi_regmap_conf);enum { fxls8962af_idx_x,
drivers/iio/accel/fxls8962af-i2c.c +1 -1
@@ -18,7 +18,7 @@ static int fxls8962af_probe(struct i2c_client *client) {struct regmap *regmap; - regmap =devm_regmap_init_i2c (client, &fxls8962af_regmap_conf); + regmap =devm_regmap_init_i2c (client, &fxls8962af_i2c_regmap_conf);if (IS_ERR (regmap)) {dev_err (&client->dev,"Failed to initialize i2c regmap\n" );return PTR_ERR (regmap);
drivers/iio/accel/fxls8962af-spi.c +1 -1
@@ -18,7 +18,7 @@ static int fxls8962af_probe(struct spi_device *spi) {struct regmap *regmap; - regmap =devm_regmap_init_spi (spi, &fxls8962af_regmap_conf); + regmap =devm_regmap_init_spi (spi, &fxls8962af_spi_regmap_conf);if (IS_ERR (regmap)) {dev_err (&spi->dev,"Failed to initialize spi regmap\n" );return PTR_ERR (regmap);
drivers/iio/accel/fxls8962af.h +2 -1
@@ -17,6 +17,7 @@ int fxls8962af_core_probe(struct device *dev, struct regmap *regmap, int irq);int fxls8962af_core_remove (struct device *dev);extern const struct dev_pm_ops fxls8962af_pm_ops; -extern const struct regmap_config fxls8962af_regmap_conf; +extern const struct regmap_config fxls8962af_i2c_regmap_conf; +extern const struct regmap_config fxls8962af_spi_regmap_conf;#endif /* _FXLS8962AF_H_ */
Signature · 1 line
2.35.1