diff options
author | Christian Eggers <ceggers@arri.de> | 2020-07-28 11:29:59 +0200 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2020-10-29 09:05:46 +0100 |
commit | f9a0684b34f9478befeb04eac5d16f82e922f324 (patch) | |
tree | 5ab6afa5a82721ff0bc3feefecb73521042bce45 | |
parent | 1e61adf05f160ff95d734a9bd1fbfb58dbad4fde (diff) | |
download | linux-stable-f9a0684b34f9478befeb04eac5d16f82e922f324.tar.gz linux-stable-f9a0684b34f9478befeb04eac5d16f82e922f324.tar.bz2 linux-stable-f9a0684b34f9478befeb04eac5d16f82e922f324.zip |
eeprom: at25: set minimum read/write access stride to 1
commit 284f52ac1c6cfa1b2e5c11b84653dd90e4e91de7 upstream.
SPI eeproms are addressed by byte.
Signed-off-by: Christian Eggers <ceggers@arri.de>
Cc: stable@vger.kernel.org
Link: https://lore.kernel.org/r/20200728092959.24600-1-ceggers@arri.de
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
-rw-r--r-- | drivers/misc/eeprom/at25.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/misc/eeprom/at25.c b/drivers/misc/eeprom/at25.c index 5afe4cd16569..cd7e7e36907b 100644 --- a/drivers/misc/eeprom/at25.c +++ b/drivers/misc/eeprom/at25.c @@ -355,7 +355,7 @@ static int at25_probe(struct spi_device *spi) at25->nvmem_config.reg_read = at25_ee_read; at25->nvmem_config.reg_write = at25_ee_write; at25->nvmem_config.priv = at25; - at25->nvmem_config.stride = 4; + at25->nvmem_config.stride = 1; at25->nvmem_config.word_size = 1; at25->nvmem_config.size = chip.byte_len; |