]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commitab49d7090d49f06c9714df43ed3c30a6979968c0
tree879537696164e55bcf6a98631adf3ecdb1d9e948
parent8bdceae0fd8dc1c0d54a1f30177e75115fff41ac
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: 071470f25c98 ("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