diff options
author | Christian Eggers <ceggers@arri.de> | 2020-07-28 12:29:59 +0300 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2020-08-28 13:08:09 +0300 |
commit | 284f52ac1c6cfa1b2e5c11b84653dd90e4e91de7 (patch) | |
tree | ed51b1b3ab1fdaac33be5a8e3e027b46a537ced7 /drivers/misc | |
parent | d3cd0071a89a085a2d578b6a9e31db10469501c6 (diff) | |
download | linux-284f52ac1c6cfa1b2e5c11b84653dd90e4e91de7.tar.xz |
eeprom: at25: set minimum read/write access stride to 1
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>
Diffstat (limited to 'drivers/misc')
-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 0e7c8dc01195..4e57eb145fcc 100644 --- a/drivers/misc/eeprom/at25.c +++ b/drivers/misc/eeprom/at25.c @@ -358,7 +358,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; |