Skip to content

Commit 284f52a

Browse files
ceggers-arrigregkh
authored andcommitted
eeprom: at25: set minimum read/write access stride to 1
SPI eeproms are addressed by byte. Signed-off-by: Christian Eggers <[email protected]> Cc: [email protected] Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Greg Kroah-Hartman <[email protected]>
1 parent d3cd007 commit 284f52a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

drivers/misc/eeprom/at25.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -358,7 +358,7 @@ static int at25_probe(struct spi_device *spi)
358358
at25->nvmem_config.reg_read = at25_ee_read;
359359
at25->nvmem_config.reg_write = at25_ee_write;
360360
at25->nvmem_config.priv = at25;
361-
at25->nvmem_config.stride = 4;
361+
at25->nvmem_config.stride = 1;
362362
at25->nvmem_config.word_size = 1;
363363
at25->nvmem_config.size = chip.byte_len;
364364

0 commit comments

Comments
 (0)