eeprom: at24: fix reading from 24MAC402/24MAC602
authorHeiner Kallweit <hkallweit1@gmail.com>
Mon, 27 Nov 2017 19:46:22 +0000 (20:46 +0100)
committerBartosz Golaszewski <brgl@bgdev.pl>
Wed, 29 Nov 2017 15:05:30 +0000 (16:05 +0100)
commit644a1f19c6c8393d0c4168a5adf79056da6822eb
tree879537696164e55bcf6a98631adf3ecdb1d9e948
parent5478e478eee3b096b8d998d4ed445da30da2dfbc
eeprom: at24: fix reading from 24MAC402/24MAC602

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.

Cc: stable@vger.kernel.org
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>
drivers/misc/eeprom/at24.c