eeprom: at24: fix reading from 24MAC402/24MAC602
authorHeiner Kallweit <hkallweit1@gmail.com>
Mon, 27 Nov 2017 19:46:22 +0000 (20:46 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 5 Dec 2017 10:24:33 +0000 (11:24 +0100)
commit388d8c9fa37194a782f7a7d7c21b7590fd08893d
tree8af6fcdc8bafabb596643a9f3cab1b927c963e9b
parentc814d6701b08fe58d6eb95641a089bde51afe951
eeprom: at24: fix reading from 24MAC402/24MAC602

commit 644a1f19c6c8393d0c4168a5adf79056da6822eb upstream.

Chip datasheet mentions that word addresses other than the actual
start position of the MAC delivers undefined results. So fix this.
Current implementation doesn't work due to this wrong offset.

Fixes: 0b813658c115 ("eeprom: at24: add support for at24mac series")
Signed-off-by: Heiner Kallweit <hkallweit1@gmail.com>
Signed-off-by: Bartosz Golaszewski <brgl@bgdev.pl>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/misc/eeprom/at24.c