]> asedeno.scripts.mit.edu Git - linux.git/commit
eeprom: at24: change nvmem stride to 1
authorDavid Lechner <david@lechnology.com>
Mon, 4 Dec 2017 01:54:41 +0000 (19:54 -0600)
committerBartosz Golaszewski <brgl@bgdev.pl>
Wed, 6 Dec 2017 10:22:04 +0000 (11:22 +0100)
commit7f6d2ecd3d7acaf205ea7b3e96f9ffc55b92298b
tree35b57c4973e745cb66aef56076285df4d1d105ee
parentf9ecc83f8d723372976df8eda3193726d7a24fcb
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: stable@vger.kernel.org
Signed-off-by: David Lechner <david@lechnology.com>
[Bartosz: tweaked the commit message]
Signed-off-by: Bartosz Golaszewski <brgl@bgdev.pl>
drivers/misc/eeprom/at24.c