Skip to content

Commit 7f6d2ec

Browse files
dlechbrgl
authored andcommitted
eeprom: at24: change nvmem stride to 1
Trying to read the MAC address from an eeprom that has an offset that is not a multiple of 4 causes an error currently. Fix it by changing the nvmem stride to 1. Cc: [email protected] Signed-off-by: David Lechner <[email protected]> [Bartosz: tweaked the commit message] Signed-off-by: Bartosz Golaszewski <[email protected]>
1 parent f9ecc83 commit 7f6d2ec

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

drivers/misc/eeprom/at24.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -876,7 +876,7 @@ static int at24_probe(struct i2c_client *client, const struct i2c_device_id *id)
876876
at24->nvmem_config.reg_read = at24_read;
877877
at24->nvmem_config.reg_write = at24_write;
878878
at24->nvmem_config.priv = at24;
879-
at24->nvmem_config.stride = 4;
879+
at24->nvmem_config.stride = 1;
880880
at24->nvmem_config.word_size = 1;
881881
at24->nvmem_config.size = chip.byte_len;
882882

0 commit comments

Comments
 (0)