eeprom: at24: change nvmem stride to 1
authorDavid Lechner <david@lechnology.com>
Mon, 4 Dec 2017 01:54:41 +0000 (19:54 -0600)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 20 Dec 2017 09:07:17 +0000 (10:07 +0100)
commit744cb5ab337218e7a258d2a82c6f5d7afc72cd16
treeb633dfe5bf493b9cf46492309f11cc220e562e92
parentd266817f5028fef8ff521a77777ef1c4b8de890e
eeprom: at24: change nvmem stride to 1

commit 7f6d2ecd3d7acaf205ea7b3e96f9ffc55b92298b upstream.

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.

Signed-off-by: David Lechner <david@lechnology.com>
[Bartosz: tweaked the commit message]
Signed-off-by: Bartosz Golaszewski <brgl@bgdev.pl>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/misc/eeprom/at24.c