Skip to content

Commit

Permalink
eeprom: at25: set minimum read/write access stride to 1
Browse files Browse the repository at this point in the history
commit 284f52a 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>
  • Loading branch information
ceggers-arri authored and gregkh committed Oct 29, 2020
1 parent d33abbe commit 5a30d4a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/misc/eeprom/at25.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;

Expand Down

0 comments on commit 5a30d4a

Please sign in to comment.